Update DockerTemplateResource.php

This commit is contained in:
Bozhidar 2024-04-27 19:48:54 +03:00
parent ed2c7f1c43
commit 5ae6773758

View file

@ -46,16 +46,21 @@ class DockerTemplateResource extends Resource
Forms\Components\TextInput::make('name')
->label('Name')
->unique('docker_templates', 'name')
->default(ucfirst($dockerTemplate))
->required()
->placeholder('Enter the name of the template'),
Forms\Components\TextInput::make('description')
->label('Description')
->placeholder('Enter the description of the template'),
// Forms\Components\TextInput::make('description')
// ->label('Description')
// ->placeholder('Enter the description of the template'),
Forms\Components\Select::make('docker_template')
->label('Docker Template')
->columnSpanFull()
->hidden(function($record) {
return $record;
})
->live()
->default($dockerTemplate)
->options([
@ -97,7 +102,7 @@ class DockerTemplateResource extends Resource
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('description'),
// Tables\Columns\TextColumn::make('description'),
])
->filters([
//