mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 22: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([
|
->schema([
|
||||||
Forms\Components\Select::make('server_id')
|
Forms\Components\Select::make('server_id')
|
||||||
->relationship('server', 'name')
|
->relationship('server', 'name')
|
||||||
|
->searchable()
|
||||||
|
->preload()
|
||||||
->required(),
|
->required(),
|
||||||
Forms\Components\TextInput::make('database_host_id')
|
Forms\Components\TextInput::make('database_host_id')
|
||||||
->required()
|
->required()
|
||||||
@ -32,18 +34,20 @@ class DatabaseResource extends Resource
|
|||||||
Forms\Components\TextInput::make('database')
|
Forms\Components\TextInput::make('database')
|
||||||
->required()
|
->required()
|
||||||
->maxLength(191),
|
->maxLength(191),
|
||||||
Forms\Components\TextInput::make('username')
|
|
||||||
->required()
|
|
||||||
->maxLength(191),
|
|
||||||
Forms\Components\TextInput::make('remote')
|
Forms\Components\TextInput::make('remote')
|
||||||
->required()
|
->required()
|
||||||
->maxLength(191)
|
->maxLength(191)
|
||||||
->default('%'),
|
->default('%'),
|
||||||
Forms\Components\Textarea::make('password')
|
Forms\Components\TextInput::make('username')
|
||||||
->required()
|
->required()
|
||||||
->columnSpanFull(),
|
->maxLength(191),
|
||||||
|
Forms\Components\TextInput::make('password')
|
||||||
|
->password()
|
||||||
|
->revealable()
|
||||||
|
->required(),
|
||||||
Forms\Components\TextInput::make('max_connections')
|
Forms\Components\TextInput::make('max_connections')
|
||||||
->numeric()
|
->numeric()
|
||||||
|
->minValue(0)
|
||||||
->default(0),
|
->default(0),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user