summaryrefslogtreecommitdiffstats
path: root/inventar/templates/search.html
blob: 5a1f1cf5f4e7e90ecc5a2276611a014f972a53fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 %}