mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Add defaults to create server.
This commit is contained in:
parent
1db8c209fb
commit
d4dd1349da
@ -511,6 +511,7 @@ class CreateServer extends CreateRecord
|
|||||||
->disabled(fn (Forms\Get $get) => $get('unlimited_mem'))
|
->disabled(fn (Forms\Get $get) => $get('unlimited_mem'))
|
||||||
->label('Memory Limit')
|
->label('Memory Limit')
|
||||||
->suffix('MB')
|
->suffix('MB')
|
||||||
|
->default(0)
|
||||||
->required()
|
->required()
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
@ -536,6 +537,7 @@ class CreateServer extends CreateRecord
|
|||||||
->disabled(fn (Forms\Get $get) => $get('unlimited_disk'))
|
->disabled(fn (Forms\Get $get) => $get('unlimited_disk'))
|
||||||
->label('Disk Space Limit')
|
->label('Disk Space Limit')
|
||||||
->suffix('MB')
|
->suffix('MB')
|
||||||
|
->default(0)
|
||||||
->required()
|
->required()
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
@ -561,6 +563,7 @@ class CreateServer extends CreateRecord
|
|||||||
->disabled(fn (Forms\Get $get) => $get('unlimited_cpu'))
|
->disabled(fn (Forms\Get $get) => $get('unlimited_cpu'))
|
||||||
->label('CPU Limit')
|
->label('CPU Limit')
|
||||||
->suffix('%')
|
->suffix('%')
|
||||||
|
->default(0)
|
||||||
->required()
|
->required()
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
@ -569,11 +572,11 @@ class CreateServer extends CreateRecord
|
|||||||
Forms\Components\Hidden::make('io')
|
Forms\Components\Hidden::make('io')
|
||||||
->helperText('The IO performance relative to other running containers')
|
->helperText('The IO performance relative to other running containers')
|
||||||
->label('Block IO Proportion')
|
->label('Block IO Proportion')
|
||||||
|
//->numeric()
|
||||||
|
//->minValue(0)
|
||||||
|
//->maxValue(1000)
|
||||||
|
//->step(10)
|
||||||
->required(),
|
->required(),
|
||||||
// ->numeric()
|
|
||||||
// ->minValue(0)
|
|
||||||
// ->maxValue(1000)
|
|
||||||
// ->step(10)
|
|
||||||
|
|
||||||
Forms\Components\ToggleButtons::make('swap_support')
|
Forms\Components\ToggleButtons::make('swap_support')
|
||||||
->label('Enable Swap Memory')
|
->label('Enable Swap Memory')
|
||||||
@ -597,6 +600,7 @@ class CreateServer extends CreateRecord
|
|||||||
->suffix('MB')
|
->suffix('MB')
|
||||||
->minValue(-1)
|
->minValue(-1)
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
|
->default(0)
|
||||||
->inlineLabel()
|
->inlineLabel()
|
||||||
->required()
|
->required()
|
||||||
->numeric(),
|
->numeric(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user