Save sort order
This commit is contained in:
parent
e343de00c0
commit
1a884c0cdf
@ -51,6 +51,7 @@ class EggResource extends Resource
|
|||||||
Forms\Components\Textarea::make('startup')
|
Forms\Components\Textarea::make('startup')
|
||||||
->rows(2)
|
->rows(2)
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
|
->required()
|
||||||
->helperText('The default startup command that should be used for new servers using this Egg.'),
|
->helperText('The default startup command that should be used for new servers using this Egg.'),
|
||||||
Forms\Components\TagsInput::make('file_denylist')
|
Forms\Components\TagsInput::make('file_denylist')
|
||||||
->placeholder('denied-file.txt')
|
->placeholder('denied-file.txt')
|
||||||
@ -72,6 +73,7 @@ class EggResource extends Resource
|
|||||||
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]),
|
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]),
|
||||||
Forms\Components\KeyValue::make('docker_images')
|
Forms\Components\KeyValue::make('docker_images')
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
|
->required()
|
||||||
->addActionLabel('Add Image')
|
->addActionLabel('Add Image')
|
||||||
->keyLabel('Name')
|
->keyLabel('Name')
|
||||||
->valueLabel('Image URI')
|
->valueLabel('Image URI')
|
||||||
@ -105,18 +107,14 @@ class EggResource extends Resource
|
|||||||
->columns(2)
|
->columns(2)
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Repeater::make('variables')
|
Forms\Components\Repeater::make('variables')
|
||||||
<<<<<<< HEAD
|
|
||||||
->grid()
|
->grid()
|
||||||
=======
|
|
||||||
->grid(3)
|
|
||||||
>>>>>>> 0f360fcdd1fa5ab9d0ae87afeeb30061a5b6b4c9
|
|
||||||
->relationship('variables')
|
->relationship('variables')
|
||||||
->name('name')
|
->name('name')
|
||||||
->columns(2)
|
->columns(2)
|
||||||
->reorderable()
|
->reorderable()
|
||||||
// ->reorderableWithDragAndDrop()
|
|
||||||
->collapsible()
|
->collapsible()
|
||||||
->collapsed()
|
->collapsed()
|
||||||
|
->orderColumn()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->itemLabel(fn (array $state) => $state['name'])
|
->itemLabel(fn (array $state) => $state['name'])
|
||||||
->mutateRelationshipDataBeforeCreateUsing(function (array $data): array {
|
->mutateRelationshipDataBeforeCreateUsing(function (array $data): array {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user