From: Frédéric Péters
Date: Fri, 11 Jul 2014 15:12:45 +0000 (+0200)
Subject: add a section for rentable items
X-Git-Tag: v2021~31
X-Git-Url: https://git.0d.be/?p=django-panik-matos.git;a=commitdiff_plain;h=cb8081deb4f278c7a78cdaf3608ab2e9b52d2a18
add a section for rentable items
---
diff --git a/matos/templates/matos/piece_list.html b/matos/templates/matos/piece_list.html
index 8b50e76..4e7de78 100644
--- a/matos/templates/matos/piece_list.html
+++ b/matos/templates/matos/piece_list.html
@@ -13,17 +13,27 @@
{% endif %}
+Pour sorties
+
+
+{% for piece in object_list %}
+{% if piece.rentable %}
+- {{ piece.title }}
+{% endif %}
+{% endfor %}
+
+
Stock
{% for piece in object_list %}
-{% if not piece.in_use %}
+{% if not piece.in_use and not piece.rentable %}
- {{ piece.title }}
{% endif %}
{% endfor %}
-Utilisé
+Utilisé à la radio
{% for piece in object_list %}