mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 06:54:46 +02:00
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')
|
||||
->rows(2)
|
||||
->columnSpanFull()
|
||||
->required()
|
||||
->helperText('The default startup command that should be used for new servers using this Egg.'),
|
||||
Forms\Components\TagsInput::make('file_denylist')
|
||||
->placeholder('denied-file.txt')
|
||||
@ -72,6 +73,7 @@ class EggResource extends Resource
|
||||
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]),
|
||||
Forms\Components\KeyValue::make('docker_images')
|
||||
->columnSpanFull()
|
||||
->required()
|
||||
->addActionLabel('Add Image')
|
||||
->keyLabel('Name')
|
||||
->valueLabel('Image URI')
|
||||
@ -105,18 +107,14 @@ class EggResource extends Resource
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\Repeater::make('variables')
|
||||
<<<<<<< HEAD
|
||||
->grid()
|
||||
=======
|
||||
->grid(3)
|
||||
>>>>>>> 0f360fcdd1fa5ab9d0ae87afeeb30061a5b6b4c9
|
||||
->relationship('variables')
|
||||
->name('name')
|
||||
->columns(2)
|
||||
->reorderable()
|
||||
// ->reorderableWithDragAndDrop()
|
||||
->collapsible()
|
||||
->collapsed()
|
||||
->orderColumn()
|
||||
->columnSpan(2)
|
||||
->itemLabel(fn (array $state) => $state['name'])
|
||||
->mutateRelationshipDataBeforeCreateUsing(function (array $data): array {
|
||||
|
Loading…
x
Reference in New Issue
Block a user