We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b0605b commit 098f9efCopy full SHA for 098f9ef
1 file changed
Service/JqueryFormValidator.php
@@ -75,6 +75,14 @@ protected function getMapping()
75
"data-msg-min" => $translator->trans($constraint->message),
76
);
77
},
78
+
79
+ // Date Constraints
80
+ "Date" => function ($constraint, $translator) {
81
+ return array(
82
+ "data-rule-dateITA" => 'true', // use dateITA to get french format (dateFR is not implemented yet)
83
+ "data-msg-dateITA" => $translator->trans($constraint->message),
84
+ );
85
+ },
86
];
87
88
return $mapping;
0 commit comments