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 *}}
|
2024-11-18 12:22:23 +01:00
|
|
|
{{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>
|
2024-10-29 10:24:50 +01:00
|
|
|
{{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}}
|
|
|
|
|
2024-12-10 15:05:50 +01:00
|
|
|
{{#load type="category" count=true assign="result"}}{{/load}}
|
2023-10-10 10:59:46 +02:00
|
|
|
|
2024-12-10 15:05:50 +01:00
|
|
|
{{if $result.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}}
|
2024-11-18 12:22:23 +01:00
|
|
|
{{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}}
|