Move this up
This commit is contained in:
parent
a8532d1cd2
commit
051b5d6bea
@ -76,6 +76,14 @@ class CreateNode extends CreateRecord
|
|||||||
->required()
|
->required()
|
||||||
->integer(),
|
->integer(),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Forms\Components\TextInput::make('name')
|
||||||
|
->columnSpan(2)
|
||||||
|
->required()
|
||||||
|
->regex('/[a-zA-Z0-9_\.\- ]+/')
|
||||||
|
->helperText('This is the display name and can be changed later. Character limits: a-Z, 0-9, and [.-_ ]')
|
||||||
|
->maxLength(100),
|
||||||
Forms\Components\ToggleButtons::make('scheme')
|
Forms\Components\ToggleButtons::make('scheme')
|
||||||
->label('Communicate over SSL')
|
->label('Communicate over SSL')
|
||||||
->required()
|
->required()
|
||||||
@ -105,12 +113,7 @@ class CreateNode extends CreateRecord
|
|||||||
'https' => 'tabler-lock',
|
'https' => 'tabler-lock',
|
||||||
])
|
])
|
||||||
->default(fn () => request()->isSecure() ? 'https' : 'http'),
|
->default(fn () => request()->isSecure() ? 'https' : 'http'),
|
||||||
Forms\Components\TextInput::make('name')
|
|
||||||
->required()
|
|
||||||
->columnSpanFull()
|
|
||||||
->regex('/[a-zA-Z0-9_\.\- ]+/')
|
|
||||||
->helperText('This is just a display name and can be changed later. Character limits: a-Z, 0-9, and [.-_ ]')
|
|
||||||
->maxLength(100),
|
|
||||||
Forms\Components\Textarea::make('description')
|
Forms\Components\Textarea::make('description')
|
||||||
->hidden()
|
->hidden()
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user