Filament v5: Forms\Components\Section → Schemas\Components\Section, Forms\Get → Schemas\Components\Utilities\Get
Layout components (Section, Grid, Tabs, etc.) au fost mutate din Filament\Forms\Components în Filament\Schemas\Components. Forms\Components păstrează doar field-urile (TextInput, Select, etc.). Forms\Get s-a mutat în Schemas\Components\Utilities\Get.
This commit is contained in:
@@ -47,7 +47,7 @@ class Settings extends Page
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Forms\Components\Section::make('Brand & contact')
|
||||
Schemas\Components\Section::make('Brand & contact')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('display_name')->label('Denumire afișată')->maxLength(120),
|
||||
@@ -55,7 +55,7 @@ class Settings extends Page
|
||||
Forms\Components\TextInput::make('phone')->label('Telefon')->tel()->maxLength(40),
|
||||
Forms\Components\TextInput::make('email')->email()->maxLength(120),
|
||||
]),
|
||||
Forms\Components\Section::make('Localizare & monedă')
|
||||
Schemas\Components\Section::make('Localizare & monedă')
|
||||
->columns(3)
|
||||
->schema([
|
||||
Forms\Components\Select::make('language')
|
||||
@@ -65,12 +65,12 @@ class Settings extends Page
|
||||
Forms\Components\TextInput::make('currency')->label('Monedă')->maxLength(8)->required(),
|
||||
Forms\Components\ColorPicker::make('theme_color')->label('Culoare brand'),
|
||||
]),
|
||||
Forms\Components\Section::make('Servicii & tarif')
|
||||
Schemas\Components\Section::make('Servicii & tarif')
|
||||
->columns(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('labor_rate')->label('Tarif normo-oră')->numeric()->required(),
|
||||
]),
|
||||
Forms\Components\Section::make('Liste configurabile')
|
||||
Schemas\Components\Section::make('Liste configurabile')
|
||||
->columns(1)
|
||||
->schema([
|
||||
Forms\Components\Textarea::make('services')
|
||||
|
||||
Reference in New Issue
Block a user