feat: Enhance form fields with autofocus, disabled autocomplete, and placeholders for better UX.
This commit is contained in:
parent
665d048608
commit
a0da450e52
@ -35,17 +35,21 @@ public function form(Schema $schema): Schema
|
||||
TextInput::make('site_name')
|
||||
->label('Nama Website')
|
||||
->placeholder('Simedkom')
|
||||
->autofocus()
|
||||
->autocomplete(false)
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
Textarea::make('site_description')
|
||||
->label('Deskripsi Website')
|
||||
->placeholder('Aplikasi Sistem Media Komunikasi Kabupaten Purwakarta')
|
||||
->autocomplete(false)
|
||||
->required(),
|
||||
|
||||
Textarea::make('address')
|
||||
->label('Alamat')
|
||||
->placeholder('Jl. Laks. Laut RE. Martadinata No.47')
|
||||
->autocomplete(false)
|
||||
->rows(3)
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
@ -33,14 +33,21 @@ public function form(Schema $schema): Schema
|
||||
->schema([
|
||||
TextInput::make('title')
|
||||
->label('SEO Title')
|
||||
->placeholder('simedkom')
|
||||
->autofocus()
|
||||
->autocomplete(false)
|
||||
->helperText('Judul yang muncul di tab browser dan hasil pencarian.'),
|
||||
|
||||
Textarea::make('description')
|
||||
->label('SEO Description')
|
||||
->placeholder('...')
|
||||
->autocomplete(false)
|
||||
->helperText('Deskripsi singkat website Anda.'),
|
||||
|
||||
TextInput::make('keywords')
|
||||
->label('SEO Keywords')
|
||||
->placeholder('keyword1, keyword2, keyword3')
|
||||
->autocomplete(false)
|
||||
->helperText('Gunakan koma untuk memisahkan kata kunci.'),
|
||||
])
|
||||
->columnSpanFull(),
|
||||
|
||||
@ -36,21 +36,26 @@ public function form(Schema $schema): Schema
|
||||
TextInput::make('facebook')
|
||||
->label('Facebook')
|
||||
->placeholder('https://facebook.com/username')
|
||||
->autofocus()
|
||||
->autocomplete(false)
|
||||
->url(),
|
||||
|
||||
TextInput::make('twitter')
|
||||
->label('Twitter')
|
||||
->placeholder('https://twitter.com/username')
|
||||
->autocomplete(false)
|
||||
->url(),
|
||||
|
||||
TextInput::make('instagram')
|
||||
->label('Instagram')
|
||||
->placeholder('https://instagram.com/username')
|
||||
->autocomplete(false)
|
||||
->url(),
|
||||
|
||||
TextInput::make('youtube')
|
||||
->label('YouTube')
|
||||
->placeholder('https://youtube.com/username')
|
||||
->autocomplete(false)
|
||||
->url(),
|
||||
]),
|
||||
])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user