mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-30 11:24:45 +02:00
styled database hosts layout
This commit is contained in:
parent
5c8097d9b7
commit
e1c6545507
@ -5,6 +5,7 @@ namespace App\Filament\Resources;
|
|||||||
use App\Filament\Resources\DatabaseHostResource\Pages;
|
use App\Filament\Resources\DatabaseHostResource\Pages;
|
||||||
use App\Models\DatabaseHost;
|
use App\Models\DatabaseHost;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
|
use Filament\Forms\Components\Section;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\Resource;
|
use Filament\Resources\Resource;
|
||||||
use Filament\Tables;
|
use Filament\Tables;
|
||||||
@ -22,6 +23,7 @@ class DatabaseHostResource extends Resource
|
|||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
|
Section::make()->schema([
|
||||||
Forms\Components\TextInput::make('host')
|
Forms\Components\TextInput::make('host')
|
||||||
->helperText('The IP address or Domain name that should be used when attempting to connect to this MySQL host from this Panel to create new databases.')
|
->helperText('The IP address or Domain name that should be used when attempting to connect to this MySQL host from this Panel to create new databases.')
|
||||||
->required()
|
->required()
|
||||||
@ -56,6 +58,10 @@ class DatabaseHostResource extends Resource
|
|||||||
->helperText('This setting only defaults to this database host when adding a database to a server on the selected node.')
|
->helperText('This setting only defaults to this database host when adding a database to a server on the selected node.')
|
||||||
->label('Linked Node')
|
->label('Linked Node')
|
||||||
->relationship('node', 'name'),
|
->relationship('node', 'name'),
|
||||||
|
])->columns([
|
||||||
|
'default' => 1,
|
||||||
|
'lg' => 2,
|
||||||
|
]),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user