40 lines
1.0 KiB
HTML
40 lines
1.0 KiB
HTML
{{* -*- brindille -*- *}}
|
|
|
|
{{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}}
|
|
|
|
{{* barre de navigation *}}
|
|
{{if $_GET.prop == null || $_GET.prop}}
|
|
{{:assign proprio="proprio"}}
|
|
{{else}}
|
|
{{:assign proprio="nonproprio"}}
|
|
{{/if}}
|
|
{{:include file="_nav.html" current="inventaire" subcurrent="%s"|args:$proprio}}
|
|
|
|
{{if $_GET.ok}}
|
|
{{if $_GET.msg == "ajout" }}
|
|
<p class="block confirm">Ajout effectué</p>
|
|
{{elseif $_GET.msg == "modification" }}
|
|
<p class="block confirm">Modification effectuée</p>
|
|
{{else}}
|
|
<p class="block confirm">{{$_GET.msg}}</p>
|
|
{{/if}}
|
|
{{elseif $_GET.err}}
|
|
<p class="block error">Modification refusée</p>
|
|
{{/if}}
|
|
|
|
{{#load type="category"}}
|
|
{{:assign var="category_keys." value=$key}}
|
|
{{/load}}
|
|
|
|
{{if $category_keys|count == 0}}
|
|
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
|
|
{{else}}
|
|
{{if $_GET.prop == null || $_GET.prop}}
|
|
{{:include file="./inventaire.html"}}
|
|
{{else}}
|
|
{{:include file="./inventaire_nonprop.html"}}
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{:admin_footer}}
|