We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8a289d + 098f9ef commit 8d25f95Copy full SHA for 8d25f95
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