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
|
return $schema
|
||||||
->components([
|
->components([
|
||||||
Section::make('Informasi')
|
Section::make('Informasi')
|
||||||
|
->description('Atur informasi untuk ditampilkan di halaman utama.')
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('site_name')
|
TextInput::make('site_name')
|
||||||
->label('Nama Website')
|
->label('Nama')
|
||||||
->placeholder('Simedkom')
|
->placeholder('Simedkom')
|
||||||
->autofocus()
|
->autofocus()
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
@ -48,7 +49,7 @@ public function form(Schema $schema): Schema
|
|||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
|
|
||||||
Textarea::make('site_description')
|
Textarea::make('site_description')
|
||||||
->label('Deskripsi Website')
|
->label('Deskripsi')
|
||||||
->placeholder('Aplikasi Sistem Media Komunikasi Kabupaten Purwakarta')
|
->placeholder('Aplikasi Sistem Media Komunikasi Kabupaten Purwakarta')
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required(),
|
->required(),
|
||||||
@ -62,7 +63,7 @@ public function form(Schema $schema): Schema
|
|||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
|
|
||||||
TextInput::make('site_email')
|
TextInput::make('site_email')
|
||||||
->label('Email Website')
|
->label('Alamat Surel')
|
||||||
->placeholder('diskominfo@purwakartakab.go.id')
|
->placeholder('diskominfo@purwakartakab.go.id')
|
||||||
->email()
|
->email()
|
||||||
->required()
|
->required()
|
||||||
@ -86,13 +87,13 @@ public function form(Schema $schema): Schema
|
|||||||
Section::make('Lampiran')
|
Section::make('Lampiran')
|
||||||
->schema([
|
->schema([
|
||||||
FileUpload::make('site_logo')
|
FileUpload::make('site_logo')
|
||||||
->label('Logo Website')
|
->label('Logo')
|
||||||
->required()
|
->required()
|
||||||
->image()
|
->image()
|
||||||
->directory('settings'),
|
->directory('settings'),
|
||||||
|
|
||||||
FileUpload::make('site_icon')
|
FileUpload::make('site_icon')
|
||||||
->label('Icon Website')
|
->label('Icon')
|
||||||
->required()
|
->required()
|
||||||
->image()
|
->image()
|
||||||
->directory('settings'),
|
->directory('settings'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user