mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Added very clunky but better error messages on that validation for date_format
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
91394f7262
commit
a61ccbb965
|
@ -120,6 +120,18 @@ return [
|
||||||
'hashed_pass' => 'Your current password is incorrect',
|
'hashed_pass' => 'Your current password is incorrect',
|
||||||
'dumbpwd' => 'That password is too common.',
|
'dumbpwd' => 'That password is too common.',
|
||||||
'statuslabel_type' => 'You must select a valid status label type',
|
'statuslabel_type' => 'You must select a valid status label type',
|
||||||
|
|
||||||
|
// date_format validation with slightly less stupid messages. It duplicates a lot, but it gets the job done :(
|
||||||
|
// We use this because the default error message for date_format is reflects php Y-m-d, which non-PHP
|
||||||
|
// people won't know how to format.
|
||||||
|
'purchase_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
'last_audit_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD hh:mm:ss format',
|
||||||
|
'expiration_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
'termination_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
'expected_checkin.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
'start_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
'end_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue