From fe100333ff1d81fc97549af9f18d706758328d13 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 27 Oct 2023 11:20:22 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20v=C3=A9rification=20existence=20mat?= =?UTF-8?q?=C3=A9riel=20si=20ajout=20r=C3=A9pertori=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mouvements/entrees/index.html | 2 ++ mouvements/entrees/repertorie.html | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/mouvements/entrees/index.html b/mouvements/entrees/index.html index 52e136d..9b10b37 100644 --- a/mouvements/entrees/index.html +++ b/mouvements/entrees/index.html @@ -6,6 +6,8 @@ {{if $_GET.ok}}

{{$_GET.msg}}

+{{else}} +

{{$_GET.msg}}

{{/if}}
diff --git a/mouvements/entrees/repertorie.html b/mouvements/entrees/repertorie.html index 9b64471..c2f5927 100644 --- a/mouvements/entrees/repertorie.html +++ b/mouvements/entrees/repertorie.html @@ -44,6 +44,11 @@ {{/load}} {{/load}} +{{* Vérifier s'il y a au moins un matériel enregistré *}} +{{if $equipments|count == 0}} + {{:error message="Erreur : il n'y a aucun matériel"}} +{{/if}} + {{* formulaire d'entrée de matériel *}}