refactor: change display format for date input
This commit is contained in:
parent
7915e1ce38
commit
969fc0c4a0
@ -36,14 +36,14 @@ public static function configure(Schema $schema): Schema
|
|||||||
->schema([
|
->schema([
|
||||||
DatePicker::make('initial_submission_date')
|
DatePicker::make('initial_submission_date')
|
||||||
->label('Tanggal Pengajuan Awal')
|
->label('Tanggal Pengajuan Awal')
|
||||||
->placeholder(fn (): string => now()->format('Y-m-d'))
|
->placeholder(fn (): string => now()->format('l, d F Y'))
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('l, d F Y')
|
->displayFormat('l, d F Y')
|
||||||
->required(),
|
->required(),
|
||||||
|
|
||||||
DatePicker::make('final_submission_date')
|
DatePicker::make('final_submission_date')
|
||||||
->label('Tanggal Pengajuan Akhir')
|
->label('Tanggal Pengajuan Akhir')
|
||||||
->placeholder(fn (): string => now()->addDays(30)->format('Y-m-d'))
|
->placeholder(fn (): string => now()->addDays(30)->format('l, d F Y'))
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('l, d F Y')
|
->displayFormat('l, d F Y')
|
||||||
->required()
|
->required()
|
||||||
|
|||||||
@ -62,7 +62,7 @@ public static function configure(Schema $schema): Schema
|
|||||||
|
|
||||||
DatePicker::make('posting_date')
|
DatePicker::make('posting_date')
|
||||||
->label('Tanggal Posting')
|
->label('Tanggal Posting')
|
||||||
->placeholder(fn (): string => now()->format('Y-m-d'))
|
->placeholder(fn (): string => now()->format('l, d F Y'))
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('l, d F Y')
|
->displayFormat('l, d F Y')
|
||||||
->required(),
|
->required(),
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public static function configure(Schema $schema): Schema
|
|||||||
|
|
||||||
DatePicker::make('release_date')
|
DatePicker::make('release_date')
|
||||||
->label('Tanggal Rilis')
|
->label('Tanggal Rilis')
|
||||||
->placeholder(fn (): string => now()->format('Y-m-d'))
|
->placeholder(fn (): string => now()->format('l, d F Y'))
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('l, d F Y')
|
->displayFormat('l, d F Y')
|
||||||
->required(),
|
->required(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user