petites améliorations présentation

This commit is contained in:
Jean-Christophe Engel 2025-03-27 10:59:00 +01:00
parent c10ff02403
commit 5c7e6e9b0f
3 changed files with 5 additions and 8 deletions

View File

@ -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}}

View File

@ -32,10 +32,6 @@
}}
</fieldset>
<div class="shortFormLeft">
<p class="help">Historique des mouvements</p>
</div>
{{* lister tous les mouvements *}}
{{#list
type="movement"

View File

@ -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 @@
<dd>{{$cat_name}}</dd>
</dl>
<dl>
{{: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"}}
</dl>
</fieldset>