diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-07-27 00:25:24 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-07-27 00:25:24 +0200 |
commit | 05b408ad3047e40a63c16c367500e925986490a1 (patch) | |
tree | e39bb7a292c6d11c5f5104a3dab3645382a23297 /inventar/templates/search.html | |
parent | c8c21d921094a33585cc66d95eaac38d0a5dd388 (diff) | |
download | ktt-inventory-system-05b408ad3047e40a63c16c367500e925986490a1.tar.bz2 |
add templates
Diffstat (limited to 'inventar/templates/search.html')
-rw-r--r-- | inventar/templates/search.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/inventar/templates/search.html b/inventar/templates/search.html new file mode 100644 index 0000000..5a1f1cf --- /dev/null +++ b/inventar/templates/search.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} + <h1>{% trans "searching for" %}: {{ term }}</h1> + + {% if results %} + <table> + <tr> + <th>{% trans "Name" %}</th> + <th>{% trans "Codes" %}</th> + </tr> + {% for result in results %} + {% cycle 'row1' 'row2' as rowcolor silent %} + <tr class="{{ rowcolor }}"> + {% if result.one_barcode %} + <td><a href="{% url item selectedid=result.one_barcode %}">{{ result.name }}</a></td> + {% else %} + <td>{{ result.name }}</td> + {% endif %} + <td>{{ result.barcodes }}</td> + </tr> + {% endfor %} + </table> + {% else %} + {% endif %} +{% endblock %} |