{{* -*- brindille -*- *}} {{* Inventaire des matériels en stock dans l'association *}} {{* filtrer selon la catégorie *}} {{if $_GET.cat_key == null}} {{:assign selected_category=$module.config.stock_cat_key}} {{elseif $_GET.cat_key == -1}} {{:assign selected_category=null}} {{:save key="config" stock_cat_key=null}} {{else}} {{:assign selected_category=$_GET.cat_key}} {{:save key="config" stock_cat_key=$selected_category}} {{/if}} {{* condition de filtrage *}} {{if $selected_category != null}} {{:assign cat_key=$selected_category|quote_sql}} {{:assign cat_condition="$$.category = %s"|args:$cat_key}} {{else}} {{:assign cat_condition="1"}} {{/if}} {{* filtrer selon appartenance *}} {{if $_GET.prop == null}} {{:assign selected_prop=$module.config.stock_prop}} {{elseif $_GET.prop == -1}} {{:assign selected_prop=null}} {{:save key="config" stock_prop=null}} {{else}} {{:assign selected_prop=$_GET.prop}} {{:save key="config" stock_prop=$_GET.prop}} {{/if}} {{if $selected_prop == null}} {{:assign prop_condition="1"}} {{elseif $selected_prop == 1}} {{:assign prop_condition="$$.stock NOT NULL"}} {{else}} {{:assign prop_condition="$$.notowned != 0"}} {{/if}} {{* sélecteurs de catégorie et d'appartenance *}} {{:assign var="cat_options." value="" label="Toutes les catégories" href="?cat_key=-1"}} {{#load type="category" order="$$.name"}} {{:assign var="categories.%s"|args:$key value=$name}} {{:assign var="cat_options." value=$key label=$name href="?cat_key=%s"|args:$key }} {{/load}}
{{:assign var="prop_options." value="" label="Tous les matériels" href="?prop=-1"}} {{:assign var="prop_options." value="1" label="Matériels propriété de l'association" href="?prop=1"}} {{:assign var="prop_options." value="0" label="Matériels NON propriété de l'association" href="?prop=0"}}Inventaire des matériels présents dans l'association
Aucun matériel.
{{/list}}