2023-12-04 11:01:08 +01:00
|
|
|
{{#restrict section="accounting" level="read"}}{{/restrict}}
|
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 *}}
|
2023-10-16 11:57:55 +02:00
|
|
|
{{:include file="/%s/_nav.html"|args:$module.name current="index"}}
|
|
|
|
|
2023-11-29 15:35:31 +01:00
|
|
|
{{#select
|
|
|
|
key
|
|
|
|
FROM module_data_equipment as cat
|
|
|
|
WHERE json_extract(cat.document, '$.type') = 'category'
|
|
|
|
}}
|
|
|
|
{{:assign var="categories." value=$key}}
|
|
|
|
{{/select}}
|
2023-10-10 10:59:46 +02:00
|
|
|
|
2023-11-30 18:37:09 +01:00
|
|
|
{{if $categories|count == 0}}
|
|
|
|
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
|
|
|
|
{{else}}
|
|
|
|
{{:include file="./inventaire.html" print_cat_name=true}}
|
|
|
|
{{/if}}
|
|
|
|
|
2023-10-10 10:59:46 +02:00
|
|
|
{{:admin_footer}}
|