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
|
|
@ -6,8 +6,6 @@
|
|||
- prop : =1 si matériel propriété de l'association
|
||||
*}}
|
||||
|
||||
{{:admin_header title="Modifier matériel" current="module_equipment"}}
|
||||
|
||||
{{:assign equipment_key=$_GET.key|trim}}
|
||||
{{#load key=$_GET.key assign="equipment"}}
|
||||
{{:assign default_category=$equipment.category}}
|
||||
|
|
@ -56,11 +54,11 @@
|
|||
designation=$_POST.designation|trim
|
||||
}}
|
||||
{{:redirect force="index.html?ok=1&msg=modification&prop=%s"|args:$_GET.prop}}
|
||||
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
|
||||
{{:admin_header title="Modifier matériel" current="module_equipment"}}
|
||||
{{:form_errors}}
|
||||
|
||||
{{* lister les catégories disponibles *}}
|
||||
{{#load type="category" assign="category" order="$$.name"}}
|
||||
{{:assign var="categories.%s"|args:$category.key value=$category.name}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue