mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Add new component
This commit is contained in:
parent
0cb7f737b0
commit
020f028008
@ -693,6 +693,15 @@ class CreateServer extends CreateRecord
|
|||||||
->keyLabel('Title')
|
->keyLabel('Title')
|
||||||
->valueLabel('Description')
|
->valueLabel('Description')
|
||||||
->columnSpan(3),
|
->columnSpan(3),
|
||||||
|
|
||||||
|
Forms\Components\CheckboxList::make('mounts')
|
||||||
|
->live()
|
||||||
|
->relationship('mounts')
|
||||||
|
->options(fn () => $this->node?->mounts->mapWithKeys(fn ($mount) => [$mount->id => $mount->name]) ?? [])
|
||||||
|
->descriptions(fn () => $this->node?->mounts->mapWithKeys(fn ($mount) => [$mount->id => "$mount->source -> $mount->target"]) ?? [])
|
||||||
|
->label('Mounts')
|
||||||
|
->helperText(fn () => $this->node?->mounts->isNotEmpty() ? '' : 'No Mounts exist for this Node')
|
||||||
|
->columnSpanFull(),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user