mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add doc for birthdate_not_after
configuration option
This commit is contained in:
parent
38885e8a0d
commit
b595efa0c9
@ -50,3 +50,23 @@ Default
|
|||||||
=======
|
=======
|
||||||
|
|
||||||
The default search is performed on firstname and/or lastname. Both are concatened before search. If values are separated by spaces, the clause `AND` is used : the search `dep ge` will match 'Gérard Depardieu` or 'Jean Depagelles', but not 'Charline Depardieu' (missing 'Ge' in word).
|
The default search is performed on firstname and/or lastname. Both are concatened before search. If values are separated by spaces, the clause `AND` is used : the search `dep ge` will match 'Gérard Depardieu` or 'Jean Depagelles', but not 'Charline Depardieu' (missing 'Ge' in word).
|
||||||
|
|
||||||
|
Configuration options
|
||||||
|
*********************
|
||||||
|
|
||||||
|
Those options are available under `chill_person` key.
|
||||||
|
|
||||||
|
Example of configuration:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
chill_person:
|
||||||
|
validation:
|
||||||
|
birthdate_not_after: P15Y
|
||||||
|
|
||||||
|
birthdate_not_after *string*
|
||||||
|
The period duration before today during which encoding birthdate is not possible. The period is a string matching the format of `ISO_8601`, which is also use to build `DateInterval classes <http://php.net/manual/en/dateinterval.construct.php>`_.
|
||||||
|
|
||||||
|
Example: `P1D`, `P18Y`
|
||||||
|
|
||||||
|
Default value: `P1D` which means that birthdate before the current day (= yesterday) are allowed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user