mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
Update DockerTemplateResource.php
This commit is contained in:
parent
ed2c7f1c43
commit
5ae6773758
1 changed files with 9 additions and 4 deletions
|
@ -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([
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue