diff --git a/_temp_inventory.html b/_temp_inventory.html deleted file mode 100644 index d4b29d4..0000000 --- a/_temp_inventory.html +++ /dev/null @@ -1,90 +0,0 @@ -{{* -*- brindille -*- *}} - -{{* - inventaire des entrées/sorties des matériels temporaires -*}} - -{{* filtrer selon la catégorie *}} -{{if $_GET.cat_key == null}} - {{:assign selected_category=$module.config.temp_cat_key}} - {{if $module.config.temp_cat_key != null}} - {{:assign cat_key=$selected_category|quote_sql}} - {{/if}} -{{elseif $_GET.cat_key == -1}} - {{:assign selected_category=null}} - {{:save key="config" temp_cat_key=null}} -{{else}} - {{:assign selected_category=$_GET.cat_key}} - {{:assign cat_key=$selected_category|quote_sql}} - {{:save key="config" temp_cat_key=$selected_category}} -{{/if}} - -{{* condition de filtrage *}} -{{if $selected_category != null}} - {{:assign cat_condition="$$.category = %s"|args:$cat_key}} -{{else}} - {{:assign cat_condition="1"}} -{{/if}} - -{{* Sélecteur catégories *}} -{{:assign var="cat_options." value="" label="Toutes les catégories" href="?cat_key=-1&prop=0"}} -{{#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&prop=0"|args:$key - }} -{{/load}} - -
- Filtrer par catégorie - {{:dropdown - title="Filtrer par catégorie" - options=$cat_options - value="%s"|args:$selected_category - }} -
- -
-

Inventaire des matériels empruntés ou loués

-
- -{{#list - select=" - $$.name AS 'Matériel' ; - (SELECT $$.name - FROM @TABLE as cat - WHERE cat.key = @TABLE.$$.category) AS 'Catégorie' ; - $$.notowned AS 'Quantité' - " - type="equipment" - where="$$.status <> 'archived' AND $$.notowned != 0 AND %s"|args:$cat_condition - order=1 - }} - {{:assign var=cat_name from=categories.%s|args:$category}} - - {{:link href="equipment_history.html?key=%s&prop=0"|args:$key" label=$name}} - {{$cat_name}} - {{$col3}} - - {{:linkbutton - label="Entrée" - shape="plus" - href="movements/input_equipment.html?key=%s"|args:$key - target="_dialog"}} - {{:linkbutton - label="Historique" - href="equipment_history.html?key=%s&prop=0"|args:$key - shape="table"}} - {{:linkbutton - label="Modifier" - href="modify_equipment.html?key=%s&prop=0"|args:$key - shape="edit" - target="_dialog"}} - - -{{else}} -

Aucun matériel.

-{{/list}}