+
+{{: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"}}
+
+Il n'y a aucune catégorie : vous devez en ajouter.
{{else}}
- {{if $_GET.prop == null || $_GET.prop == "1"}}
- {{:include file="./_inventory.html"}}
- {{else}}
- {{:include file="./_temp_inventory.html"}}
- {{/if}}
+ {{:include file="./_inventory.html"}}
{{/if}}
{{:admin_footer}}
diff --git a/loan_history.html b/loan_history.html
index 997ffa4..a7ff7de 100644
--- a/loan_history.html
+++ b/loan_history.html
@@ -2,14 +2,21 @@
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
-{{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}}
-{{:include file="./_nav.html" current="historique" subcurrent="prêts"}}
+{{if $_GET.output_type == "loan"}}
+ {{:assign label="prêt"}}
+{{elseif $_GET.output_type == "rent"}}
+ {{:assign label="location"}}
+{{else}}
+ {{:error message="Cette page n'existe pas !"}}
+{{/if}}
+
+{{:admin_header title="%ss en cours"|args:$label|ucfirst custom_css="../style.css" current="module_equipment"}}
+{{:include file="./_nav.html" current="%s"|args:$label subcurrent="encours"}}
{{*
vérifier l'existence de la table du module
eh oui, il se peut qu'elle ne soit pas encore créée si aucune donnée n'a été ajoutée dedans
*}}
-
{{#load limit="1"}}
{{:assign table_presente=true}}
{{else}}
@@ -31,20 +38,70 @@
{{/if}}
{{/if}}
-