From 5c7e6e9b0fd519a95fb555ba97166c5076521de5 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 27 Mar 2025 10:59:00 +0100 Subject: [PATCH] =?UTF-8?q?petites=20am=C3=A9liorations=20pr=C3=A9sentatio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/ajouter_type_mouvement.html | 2 +- global_history.html | 4 ---- unarchive_equipment.html | 7 ++++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config/ajouter_type_mouvement.html b/config/ajouter_type_mouvement.html index f225bda..810274b 100644 --- a/config/ajouter_type_mouvement.html +++ b/config/ajouter_type_mouvement.html @@ -32,7 +32,7 @@ {{* ajouter le nouveau type de mouvement *}} {{if $_GET.dir == $direction}} - {{:assign var="newlabel" from="_POST.%s_fields.label|args:$direction}} + {{:assign var="newlabel" from="_POST.%s_fields.label"|args:$direction}} {{:assign newlabel=$newlabel|trim|tolower|ucfirst}} {{:assign var="%s_nature.key"|args:$direction value=""|uuid}} {{:assign var="%s_nature.label"|args:$direction value=$newlabel}} diff --git a/global_history.html b/global_history.html index f26b8f2..e552224 100644 --- a/global_history.html +++ b/global_history.html @@ -32,10 +32,6 @@ }} -
-

Historique des mouvements

-
- {{* lister tous les mouvements *}} {{#list type="movement" diff --git a/unarchive_equipment.html b/unarchive_equipment.html index 035e0ca..4b86bcd 100644 --- a/unarchive_equipment.html +++ b/unarchive_equipment.html @@ -14,13 +14,14 @@ {{* Traiter l'envoi du formulaire *}} {{#form on="save"}} - {{if $_POST.unarchive == 1}} + {{if $_POST.unarchive != 1}} {{:save key=$equipment.key status="available" }} - {{/if}} {{:redirect force="archives.html?ok=1&msg=modification"}} + {{/if}} + {{:redirect force="archives.html"}} {{/form}} {{:admin_header title="Modifier matériel" custom_css="./style.css" current="module_equipment"}} @@ -40,7 +41,7 @@
{{$cat_name}}
- {{:input type="checkbox" value=1 name="unarchive" label="Désarchiver" help="cocher pour remettre le matériel en service"}} + {{:input type="checkbox" value=1 name="unarchive" label="Archivé" checked="checked" help="décocher pour remettre le matériel en service"}}