Commit 7735d145 authored by Théo GUILLON's avatar Théo GUILLON

Correction : affichage de l'erreur sur l'onglet annexe

parent 0723bb32
......@@ -388,6 +388,13 @@ echo $this->WebcilForm->end();
$(a).append("<span class='fa fa-exclamation-circle fa-danger' aria-hidden='true'><\/span>");
});
let errorAnnexe = <?php echo json_encode($this->validationErrors['Fichier']); ?>;
if (errorAnnexe.length !== 0) {
let aAnnexe = $('a[href="#annexe"]');
$(aAnnexe).parent().addClass("form-error");
$(aAnnexe).append("<span class='fa fa-exclamation-circle fa-danger' aria-hidden='true'><\/span>");
}
// Mask champs
// Information sur le rédacteur
$('#declarantpersonneportable').mask('00 00 00 00 00', {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment