add syntaxe erreur

This commit is contained in:
Valentin CZERYBA 2023-10-27 23:58:23 +02:00
parent 28ab29d2b9
commit 8feb56141c
2 changed files with 8 additions and 0 deletions

View File

@ -153,6 +153,11 @@
<button type="button" class="btn-close" aria-label="Close"></button>
</div>
<div class="alert alert-danger alert-dismissible hidden" id="syntaxAlert" role="alert">
<div>Erreur d'entrée dans le formulaire</div>
<button type="button" class="btn-close" aria-label="Close"></button>
</div>
<div class="alert alert-danger alert-dismissible hidden" id="unknownAlert" role="alert">
<div>Erreur inconnue</div>
<button type="button" class="btn-close" aria-label="Close"></button>

View File

@ -79,6 +79,9 @@ document.getElementById("addUser").addEventListener("click", function(){
case 403:
idAlert="forbidden";
break;
case 403:
idAlert="syntaxe";
break;
case 500:
idAlert="internalServer";
break;