From 4e2038a094c607f98d8e5783858a6820f7609d51 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski Date: Sat, 7 Oct 2017 21:32:29 +0200 Subject: [PATCH] Add "Details" section to item view Now information like: owner, state, taken {by, on, until} are presented in the item page. --- storage/templates/item.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/storage/templates/item.html b/storage/templates/item.html index af2aa51..31c4c82 100644 --- a/storage/templates/item.html +++ b/storage/templates/item.html @@ -14,6 +14,26 @@
+

Details

+ + {% if item.owner %} + + {% endif %} + + + {% if item.taken_by %} + + {% endif %} + + {% if item.taken_on %} + + {% endif %} + + {% if item.taken_until %} + + {% endif %} +
owner{{ item.owner }}
state{{ item.state }}
taken by{{ item.taken_by }}
taken on{{ item.taken_on }}
taken until{{ item.taken_until }}
+

Properties