]> saetta.ns0.it Git - zakform/tests/commitdiff
Added test for camparing date value in ZakFormElementValidatorDate.
authorAndrea Zagli <azagli@libero.it>
Mon, 1 May 2017 10:44:37 +0000 (12:44 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 1 May 2017 10:44:37 +0000 (12:44 +0200)
data/zakformtests/xml/cgi.xml

index 153c957f947d2be27aeefd8e2015acaadc886163..d52e7aca19ef5b62a9ff243c0ae1568f3970ee3a 100644 (file)
@@ -62,7 +62,7 @@ and                                    some            tabs
        <default-value>@now</default-value>
        <format>%d/%m/%Y</format>
        <label>Birthday</label>
-       <validator type="zak_form_element_validator_date">%d/%m/%Y</validator>
+       <validator type="zak_form_element_validator_date" type_comp="lt" value_comp="@now">%d/%m/%Y</validator>
   </element>
 
   <element type="zak_form_cgi_form_element_radio">