equipment/index.html

22 lines
633 B
HTML

{{#restrict section="accounting" level="read"}}
{{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}}
{{* barre de navigation *}}
{{:include file="/%s/_nav.html"|args:$module.name current="index"}}
{{#select
key
FROM module_data_equipment as cat
WHERE json_extract(cat.document, '$.type') = 'category'
}}
{{:assign var="categories." value=$key}}
{{/select}}
{{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}}
{{:admin_footer}}