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')
|
->placeholder('John Doe')
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required()
|
->required()
|
||||||
->maxLength(100)
|
->maxLength(150)
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])
|
])
|
||||||
->columns(2)
|
->columns(2)
|
||||||
|
|||||||
@ -136,7 +136,7 @@ public static function form(Schema $schema): Schema
|
|||||||
'title' => 'Organisasi Kewartawanan',
|
'title' => 'Organisasi Kewartawanan',
|
||||||
'text_name' => 'journalism_organization',
|
'text_name' => 'journalism_organization',
|
||||||
'placeholder' => '*****',
|
'placeholder' => '*****',
|
||||||
'max' => 100,
|
'max' => 255,
|
||||||
'max_size' => 1024 * 10,
|
'max_size' => 1024 * 10,
|
||||||
'file_name' => 'journalism_organization_docs',
|
'file_name' => 'journalism_organization_docs',
|
||||||
'accept' => ['application/pdf'],
|
'accept' => ['application/pdf'],
|
||||||
@ -146,7 +146,7 @@ public static function form(Schema $schema): Schema
|
|||||||
'title' => 'Sertifikat Dewan Pers',
|
'title' => 'Sertifikat Dewan Pers',
|
||||||
'text_name' => 'press_council_certificate',
|
'text_name' => 'press_council_certificate',
|
||||||
'placeholder' => '*****',
|
'placeholder' => '*****',
|
||||||
'max' => 100,
|
'max' => 255,
|
||||||
'max_size' => 1024 * 10,
|
'max_size' => 1024 * 10,
|
||||||
'file_name' => 'press_council_certificate_docs',
|
'file_name' => 'press_council_certificate_docs',
|
||||||
'accept' => ['application/pdf'],
|
'accept' => ['application/pdf'],
|
||||||
@ -164,7 +164,7 @@ public static function form(Schema $schema): Schema
|
|||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->autofocus()
|
->autofocus()
|
||||||
->required()
|
->required()
|
||||||
->maxLength(100),
|
->maxLength(50),
|
||||||
|
|
||||||
TextInput::make('link')
|
TextInput::make('link')
|
||||||
->label('Tautan')
|
->label('Tautan')
|
||||||
|
|||||||
@ -90,7 +90,6 @@ public static function form(Schema $schema): Schema
|
|||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required()
|
->required()
|
||||||
->maxLength(254)
|
->maxLength(254)
|
||||||
->unique('journalists', 'email', ignoreRecord: true)
|
|
||||||
->email(),
|
->email(),
|
||||||
|
|
||||||
TextInput::make('phone_number')
|
TextInput::make('phone_number')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user