From 2fc09554f0e2dbabf1404ae39cc2f50e31898a8b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Sat, 1 Nov 2025 08:14:47 +0100 Subject: [PATCH] =?UTF-8?q?Historique=20pr=C3=AAts=20:=20ajout=20v=C3=A9ri?= =?UTF-8?q?fication=20existence=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loan_history.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/loan_history.html b/loan_history.html index 7b446f8..9fc1924 100644 --- a/loan_history.html +++ b/loan_history.html @@ -1,7 +1,20 @@ {{* -*- brindille -*- *}} {{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}} +{{:include file="./_nav.html" current="historique" subcurrent="prêts"}} +{{* + vérifier l'existence de la table du module + eh oui, il se peut qu'elle ne soit pas encore créée si aucune donnée n'a été ajoutée dedans +*}} + +{{#load limit="1"}} + {{:assign table_presente=true}} +{{else}} + {{:assign table_presente=false}} +{{/load}} + +{{if $table_presente}} {{if $_GET.ok}} {{if $_GET.msg == "modification"}}

Modification enregistrée

@@ -16,7 +29,6 @@ {{/if}} {{/if}} -{{:include file="./_nav.html" current="historique" subcurrent="prêts"}} {{* lecture config (défaut ou enregistrée) *}} {{:include file="./_get_config.html" keep="config"}} @@ -116,5 +128,8 @@ {{/select}} +{{else}} +

Aucun mouvement.

+{{/if}} {{:admin_footer}}