refactor: shorten general settings field labels and add a description to the information section.
This commit is contained in:
parent
4e8ac2750f
commit
6ced1ef7b4
@ -38,9 +38,10 @@ public function form(Schema $schema): Schema
|
||||
return $schema
|
||||
->components([
|
||||
Section::make('Informasi')
|
||||
->description('Atur informasi untuk ditampilkan di halaman utama.')
|
||||
->schema([
|
||||
TextInput::make('site_name')
|
||||
->label('Nama Website')
|
||||
->label('Nama')
|
||||
->placeholder('Simedkom')
|
||||
->autofocus()
|
||||
->autocomplete(false)
|
||||
@ -48,7 +49,7 @@ public function form(Schema $schema): Schema
|
||||
->maxLength(255),
|
||||
|
||||
Textarea::make('site_description')
|
||||
->label('Deskripsi Website')
|
||||
->label('Deskripsi')
|
||||
->placeholder('Aplikasi Sistem Media Komunikasi Kabupaten Purwakarta')
|
||||
->autocomplete(false)
|
||||
->required(),
|
||||
@ -62,7 +63,7 @@ public function form(Schema $schema): Schema
|
||||
->maxLength(255),
|
||||
|
||||
TextInput::make('site_email')
|
||||
->label('Email Website')
|
||||
->label('Alamat Surel')
|
||||
->placeholder('diskominfo@purwakartakab.go.id')
|
||||
->email()
|
||||
->required()
|
||||
@ -86,13 +87,13 @@ public function form(Schema $schema): Schema
|
||||
Section::make('Lampiran')
|
||||
->schema([
|
||||
FileUpload::make('site_logo')
|
||||
->label('Logo Website')
|
||||
->label('Logo')
|
||||
->required()
|
||||
->image()
|
||||
->directory('settings'),
|
||||
|
||||
FileUpload::make('site_icon')
|
||||
->label('Icon Website')
|
||||
->label('Icon')
|
||||
->required()
|
||||
->image()
|
||||
->directory('settings'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user