mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 09:44:45 +02:00
Allow mounts to be added to servers
This commit is contained in:
parent
110cc1248b
commit
a1067fd4aa
@ -516,6 +516,13 @@ class EditServer extends EditRecord
|
|||||||
->keyLabel('Label Name')
|
->keyLabel('Label Name')
|
||||||
->valueLabel('Label Description')
|
->valueLabel('Label Description')
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
|
|
||||||
|
Forms\Components\CheckboxList::make('mounts')
|
||||||
|
->relationship('mounts')
|
||||||
|
->options(fn (Server $server) => $server->node->mounts->mapWithKeys(fn ($mount) => [$mount->id => $mount->name]))
|
||||||
|
->descriptions(fn (Server $server) => $server->node->mounts->mapWithKeys(fn ($mount) => [$mount->id => "$mount->source -> $mount->target"]))
|
||||||
|
->label('Mounts')
|
||||||
|
->columnSpanFull(),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user