diff options
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 %} |