feat: make theme color, font, content width, border radius fields required in Profile form
This commit is contained in:
parent
382dc4aa03
commit
2123cec88a
@ -156,7 +156,8 @@ public function form(Schema $schema): Schema
|
|||||||
'indigo' => '🌌 Indigo (Ungu Gelap)',
|
'indigo' => '🌌 Indigo (Ungu Gelap)',
|
||||||
])
|
])
|
||||||
->placeholder('Pilih warna tema')
|
->placeholder('Pilih warna tema')
|
||||||
->native(false),
|
->native(false)
|
||||||
|
->required(),
|
||||||
|
|
||||||
Select::make('settings.font')
|
Select::make('settings.font')
|
||||||
->label('Jenis Huruf (Font)')
|
->label('Jenis Huruf (Font)')
|
||||||
@ -168,7 +169,8 @@ public function form(Schema $schema): Schema
|
|||||||
'Montserrat' => 'Montserrat (Classic)',
|
'Montserrat' => 'Montserrat (Classic)',
|
||||||
'Lexend' => 'Lexend (Readable)',
|
'Lexend' => 'Lexend (Readable)',
|
||||||
])
|
])
|
||||||
->native(false),
|
->native(false)
|
||||||
|
->required(),
|
||||||
|
|
||||||
Select::make('settings.content_width')
|
Select::make('settings.content_width')
|
||||||
->label('Lebar Konten')
|
->label('Lebar Konten')
|
||||||
@ -176,7 +178,8 @@ public function form(Schema $schema): Schema
|
|||||||
'full' => '↔️ Lebar Penuh (Full)',
|
'full' => '↔️ Lebar Penuh (Full)',
|
||||||
'centered' => '🏢 Terpusat (Centered)',
|
'centered' => '🏢 Terpusat (Centered)',
|
||||||
])
|
])
|
||||||
->native(false),
|
->native(false)
|
||||||
|
->required(),
|
||||||
|
|
||||||
Select::make('settings.border_radius')
|
Select::make('settings.border_radius')
|
||||||
->label('Radius Sudut (Border)')
|
->label('Radius Sudut (Border)')
|
||||||
@ -186,7 +189,8 @@ public function form(Schema $schema): Schema
|
|||||||
'lg' => '🎉 Rounded (Cheerful)',
|
'lg' => '🎉 Rounded (Cheerful)',
|
||||||
'xl' => '🎈 Extra Round',
|
'xl' => '🎈 Extra Round',
|
||||||
])
|
])
|
||||||
->native(false),
|
->native(false)
|
||||||
|
->required(),
|
||||||
|
|
||||||
Toggle::make('settings.top_navigation')
|
Toggle::make('settings.top_navigation')
|
||||||
->label('Navigasi Atas (Top Nav)')
|
->label('Navigasi Atas (Top Nav)')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user