From 6e4f7fc5774aa2d40120f863b61d148c7bad79d7 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Tue, 31 Jul 2012 21:02:38 +0200 Subject: add Note field to item view --- inventar/templates/item.html | 5 + inventory/views.py | 1 + static/note.svg | 219 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 225 insertions(+) create mode 100644 static/note.svg diff --git a/inventar/templates/item.html b/inventar/templates/item.html index d144a18..d5c645b 100644 --- a/inventar/templates/item.html +++ b/inventar/templates/item.html @@ -24,6 +24,11 @@
{{ description }}
+ + {% trans +
{{ note }}
+ + {% if image %} {% trans diff --git a/inventory/views.py b/inventory/views.py index 43ea76d..e97bbaa 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -44,6 +44,7 @@ def item(request, selectedid): "name": p.item.name, "codes": p.item.barcodes(), "description": p.item.description, + "note": p.item.note, "in_use": p.item.inUse, "parent": p.item.parent, "temporary_parent": p.item.temp_parent, diff --git a/static/note.svg b/static/note.svg new file mode 100644 index 0000000..272543a --- /dev/null +++ b/static/note.svg @@ -0,0 +1,219 @@ + + + + + + + + + + image/svg+xml + + + + + Alex Hartmann + + + + www.alexhartmann.net + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3