equipment/index.html

40 lines
1.0 KiB
HTML
Raw Normal View History

2024-10-28 09:53:29 +01:00
{{* -*- brindille -*- *}}
2023-10-16 11:57:55 +02:00
{{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}}
2023-10-10 10:59:46 +02:00
{{* 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}}
2023-10-16 11:57:55 +02:00
2023-12-05 19:17:08 +01:00
{{if $_GET.ok}}
2024-10-28 09:53:29 +01:00
{{if $_GET.msg == "ajout" }}
<p class="block confirm">Ajout effectué</p>
{{elseif $_GET.msg == "modification" }}
<p class="block confirm">Modification effectuée</p>
2024-10-28 09:53:29 +01:00
{{else}}
<p class="block confirm">{{$_GET.msg}}</p>
{{/if}}
2023-12-05 19:17:08 +01:00
{{elseif $_GET.err}}
2023-12-06 09:59:11 +01:00
<p class="block error">Modification refusée</p>
2023-12-05 19:17:08 +01:00
{{/if}}
{{#load type="category"}}
{{:assign var="category_keys." value=$key}}
2023-12-05 19:17:08 +01:00
{{/load}}
2023-10-10 10:59:46 +02:00
{{if $category_keys|count == 0}}
2023-12-06 09:59:11 +01:00
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
2023-11-30 18:37:09 +01:00
{{else}}
{{if $_GET.prop == null || $_GET.prop}}
{{:include file="./inventaire.html"}}
{{else}}
{{:include file="./inventaire_nonprop.html"}}
{{/if}}
2023-11-30 18:37:09 +01:00
{{/if}}
2023-10-10 10:59:46 +02:00
{{:admin_footer}}