refactor: modify form field validation by removing journalist email uniqueness and adjusting various text input maximum lengths.
This commit is contained in:
parent
28ca845adb
commit
edd0e92971
@ -212,7 +212,7 @@ public static function form(Schema $schema): Schema
|
||||
->placeholder('John Doe')
|
||||
->autocomplete(false)
|
||||
->required()
|
||||
->maxLength(100)
|
||||
->maxLength(150)
|
||||
->columnSpanFull(),
|
||||
])
|
||||
->columns(2)
|
||||
|
||||
@ -136,7 +136,7 @@ public static function form(Schema $schema): Schema
|
||||
'title' => 'Organisasi Kewartawanan',
|
||||
'text_name' => 'journalism_organization',
|
||||
'placeholder' => '*****',
|
||||
'max' => 100,
|
||||
'max' => 255,
|
||||
'max_size' => 1024 * 10,
|
||||
'file_name' => 'journalism_organization_docs',
|
||||
'accept' => ['application/pdf'],
|
||||
@ -146,7 +146,7 @@ public static function form(Schema $schema): Schema
|
||||
'title' => 'Sertifikat Dewan Pers',
|
||||
'text_name' => 'press_council_certificate',
|
||||
'placeholder' => '*****',
|
||||
'max' => 100,
|
||||
'max' => 255,
|
||||
'max_size' => 1024 * 10,
|
||||
'file_name' => 'press_council_certificate_docs',
|
||||
'accept' => ['application/pdf'],
|
||||
@ -164,7 +164,7 @@ public static function form(Schema $schema): Schema
|
||||
->autocomplete(false)
|
||||
->autofocus()
|
||||
->required()
|
||||
->maxLength(100),
|
||||
->maxLength(50),
|
||||
|
||||
TextInput::make('link')
|
||||
->label('Tautan')
|
||||
|
||||
@ -90,7 +90,6 @@ public static function form(Schema $schema): Schema
|
||||
->autocomplete(false)
|
||||
->required()
|
||||
->maxLength(254)
|
||||
->unique('journalists', 'email', ignoreRecord: true)
|
||||
->email(),
|
||||
|
||||
TextInput::make('phone_number')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user