mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 11:34:45 +02:00
Update database form
This commit is contained in:
parent
95570724e6
commit
aac522232f
@ -25,6 +25,8 @@ class DatabaseResource extends Resource
|
||||
->schema([
|
||||
Forms\Components\Select::make('server_id')
|
||||
->relationship('server', 'name')
|
||||
->searchable()
|
||||
->preload()
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('database_host_id')
|
||||
->required()
|
||||
@ -32,18 +34,20 @@ class DatabaseResource extends Resource
|
||||
Forms\Components\TextInput::make('database')
|
||||
->required()
|
||||
->maxLength(191),
|
||||
Forms\Components\TextInput::make('username')
|
||||
->required()
|
||||
->maxLength(191),
|
||||
Forms\Components\TextInput::make('remote')
|
||||
->required()
|
||||
->maxLength(191)
|
||||
->default('%'),
|
||||
Forms\Components\Textarea::make('password')
|
||||
Forms\Components\TextInput::make('username')
|
||||
->required()
|
||||
->columnSpanFull(),
|
||||
->maxLength(191),
|
||||
Forms\Components\TextInput::make('password')
|
||||
->password()
|
||||
->revealable()
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('max_connections')
|
||||
->numeric()
|
||||
->minValue(0)
|
||||
->default(0),
|
||||
]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user