Pint
This commit is contained in:
parent
8da0017eaf
commit
94f583fef0
@ -496,32 +496,31 @@ class CreateServer extends CreateRecord
|
|||||||
->columns(4)
|
->columns(4)
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\ToggleButtons::make('unlimited_mem')
|
Forms\Components\ToggleButtons::make('unlimited_mem')
|
||||||
->label('Memory')->inlineLabel()->inline()
|
->label('Memory')->inlineLabel()->inline()
|
||||||
->default(true)
|
->default(true)
|
||||||
->afterStateUpdated(fn (Forms\Set $set) => $set('memory', 0))
|
->afterStateUpdated(fn (Forms\Set $set) => $set('memory', 0))
|
||||||
->live()
|
->live()
|
||||||
->options([
|
->options([
|
||||||
true => 'Unlimited',
|
true => 'Unlimited',
|
||||||
false => 'Limited',
|
false => 'Limited',
|
||||||
])
|
])
|
||||||
->colors([
|
->colors([
|
||||||
true => 'primary',
|
true => 'primary',
|
||||||
false => 'warning',
|
false => 'warning',
|
||||||
])
|
])
|
||||||
->columnSpan(2),
|
->columnSpan(2),
|
||||||
|
|
||||||
Forms\Components\TextInput::make('memory')
|
|
||||||
->dehydratedWhenHidden()
|
|
||||||
->hidden(fn (Forms\Get $get) => $get('unlimited_mem'))
|
|
||||||
->label('Memory Limit')->inlineLabel()
|
|
||||||
->suffix('MB')
|
|
||||||
->default(0)
|
|
||||||
->required()
|
|
||||||
->columnSpan(2)
|
|
||||||
->numeric(),
|
|
||||||
]),
|
|
||||||
|
|
||||||
|
Forms\Components\TextInput::make('memory')
|
||||||
|
->dehydratedWhenHidden()
|
||||||
|
->hidden(fn (Forms\Get $get) => $get('unlimited_mem'))
|
||||||
|
->label('Memory Limit')->inlineLabel()
|
||||||
|
->suffix('MB')
|
||||||
|
->default(0)
|
||||||
|
->required()
|
||||||
|
->columnSpan(2)
|
||||||
|
->numeric(),
|
||||||
|
]),
|
||||||
|
|
||||||
Forms\Components\Grid::make()
|
Forms\Components\Grid::make()
|
||||||
->columns(4)
|
->columns(4)
|
||||||
@ -553,7 +552,6 @@ class CreateServer extends CreateRecord
|
|||||||
->numeric(),
|
->numeric(),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|
||||||
Forms\Components\Grid::make()
|
Forms\Components\Grid::make()
|
||||||
->columns(4)
|
->columns(4)
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user