déplacement admin_header et form_errors
This commit is contained in:
parent
be14aa6809
commit
f2a9cb6af6
16 changed files with 40 additions and 93 deletions
|
|
@ -1,7 +1,5 @@
|
|||
{{* -*- brindille -*- *}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{if ! $dialog}}
|
||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||
|
|
@ -57,11 +55,11 @@
|
|||
output_nature=$output_natures
|
||||
}}
|
||||
{{:redirect to="./config.html?ok=1"}}
|
||||
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
{{:form_errors}}
|
||||
|
||||
{{if $_GET.dir == 'input'}}
|
||||
{{* types d'entrées *}}
|
||||
{{#foreach from=$config.input_nature key="label" item="type"}}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@
|
|||
- mvt : libellé du type de mouvement à modifier
|
||||
*}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{if ! $dialog}}
|
||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||
|
|
@ -21,7 +19,7 @@
|
|||
{{#form on="save"}}
|
||||
{{#foreach from=$config.input_nature key="label" item="type"}}
|
||||
{{:debug key=$label item=$type}}
|
||||
{{if $_GET.dir == 'input'
|
||||
{{if $_GET.dir == 'input'
|
||||
&& $label|trim|tolower == $_GET.mvt|trim|tolower}}
|
||||
{{:assign var="input_nature.label" value=$_POST.name|trim|tolower|ucfirst}}
|
||||
{{else}
|
||||
|
|
@ -52,6 +50,7 @@
|
|||
*}}
|
||||
{{/form}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
{{:form_errors}}
|
||||
|
||||
<form method="post" action="">
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@
|
|||
- mvt : libellé du type de mouvement à supprimer
|
||||
*}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{if ! $dialog}}
|
||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||
|
|
@ -45,6 +43,9 @@
|
|||
|
||||
{{/form}}
|
||||
|
||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||
{{:form_errors}}
|
||||
|
||||
{{if $_GET.dir == 'input'}}
|
||||
{{:delete_form
|
||||
legend="Supprimer cette entrée ?"
|
||||
|
|
@ -56,6 +57,5 @@
|
|||
warning="Supprimer la sortie « %s » ?"|args:$_GET.mvt
|
||||
}}
|
||||
{{/if}}
|
||||
{{:form_errors}}
|
||||
|
||||
{{:admin_footer}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue