diff --git a/inventaire.html b/inventaire.html index 7d253e7..edc99fa 100644 --- a/inventaire.html +++ b/inventaire.html @@ -8,20 +8,24 @@ {{:include file="./_calcul_dispo.html" keep="categories,equipments"}} {{* Sélecteur catégories *}} -
+{{:assign var="options." value="" label="Toutes les catégories" href="?prop=1"}} +{{#foreach from=$categories key=key item=name}} + {{:assign + var="options." + value=$key + label=$name + href="?cat_key=%s&prop=1"|args:$key + }} +{{/foreach}} + +
Filtrer par catégorie -
diff --git a/inventaire_nonprop.html b/inventaire_nonprop.html index 391b243..54d0b73 100644 --- a/inventaire_nonprop.html +++ b/inventaire_nonprop.html @@ -8,20 +8,24 @@ {{:include file="./_calcul_dispo.html" keep="categories,equipments"}} {{* Sélecteur catégories *}} +{{:assign var="options." value="" label="Toutes les catégories" href="?prop=0"}} +{{#foreach from=$categories key=key item=name}} + {{:assign + var="options." + value=$key + label=$name + href="?cat_key=%s&prop=0"|args:$key + }} +{{/foreach}} +
Filtrer par catégorie -