mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Add Mounts + Icons
This commit is contained in:
parent
118977c8c5
commit
58d1fd3917
@ -98,6 +98,7 @@ class EditServer extends EditRecord
|
|||||||
])
|
])
|
||||||
->tabs([
|
->tabs([
|
||||||
Tabs\Tab::make('Information')
|
Tabs\Tab::make('Information')
|
||||||
|
->icon('tabler-info-circle')
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\TextInput::make('name')
|
Forms\Components\TextInput::make('name')
|
||||||
->prefixIcon('tabler-server')
|
->prefixIcon('tabler-server')
|
||||||
@ -179,6 +180,7 @@ class EditServer extends EditRecord
|
|||||||
->disabled(),
|
->disabled(),
|
||||||
]),
|
]),
|
||||||
Tabs\Tab::make('Environment')
|
Tabs\Tab::make('Environment')
|
||||||
|
->icon('tabler-brand-docker')
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Fieldset::make('Resource Limits')
|
Forms\Components\Fieldset::make('Resource Limits')
|
||||||
->columnSpan([
|
->columnSpan([
|
||||||
@ -443,6 +445,7 @@ class EditServer extends EditRecord
|
|||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
Tabs\Tab::make('Egg')
|
Tabs\Tab::make('Egg')
|
||||||
|
->icon('tabler-egg')
|
||||||
->columns([
|
->columns([
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'sm' => 3,
|
'sm' => 3,
|
||||||
@ -567,16 +570,23 @@ class EditServer extends EditRecord
|
|||||||
->columnSpan(6),
|
->columnSpan(6),
|
||||||
]),
|
]),
|
||||||
Tabs\Tab::make('Mounts')
|
Tabs\Tab::make('Mounts')
|
||||||
|
->icon('tabler-layers-linked')
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Placeholder::make('soon')
|
Forms\Components\CheckboxList::make('mounts')
|
||||||
->label('Soon™'),
|
->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(),
|
||||||
]),
|
]),
|
||||||
Tabs\Tab::make('Databases')
|
Tabs\Tab::make('Databases')
|
||||||
|
->icon('tabler-database')
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Placeholder::make('soon')
|
Forms\Components\Placeholder::make('soon')
|
||||||
->label('Soon™'),
|
->label('Soon™'),
|
||||||
]),
|
]),
|
||||||
Tabs\Tab::make('Actions')
|
Tabs\Tab::make('Actions')
|
||||||
|
->icon('tabler-settings')
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Fieldset::make('Server Actions')
|
Forms\Components\Fieldset::make('Server Actions')
|
||||||
->columns([
|
->columns([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user