petites améliorations présentation
This commit is contained in:
parent
c10ff02403
commit
5c7e6e9b0f
@ -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}}
|
||||
|
@ -32,10 +32,6 @@
|
||||
}}
|
||||
</fieldset>
|
||||
|
||||
<div class="shortFormLeft">
|
||||
<p class="help">Historique des mouvements</p>
|
||||
</div>
|
||||
|
||||
{{* lister tous les mouvements *}}
|
||||
{{#list
|
||||
type="movement"
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user