aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/devices/choose-list.html
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/devices/choose-list.html')
-rwxr-xr-xservo/templates/devices/choose-list.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/servo/templates/devices/choose-list.html b/servo/templates/devices/choose-list.html
new file mode 100755
index 0000000..8f5d3f4
--- /dev/null
+++ b/servo/templates/devices/choose-list.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+<ul class="nav nav-list">
+{% for i in results %}
+{% if i.pk %}
+ <li><a href="{% url 'orders-add_device' pk=order device_id=i.pk %}"><strong>{{ i.description }}</strong><br/><small>{{ i.configuration }}</small></a></li>
+{% else %}
+ <li><a href="{% url 'orders-add_device' pk=order sn=i.sn %}"><strong>{{ i.description }}</strong><br/><small>{{ i.configuration }}</small></a></li>
+{% endif %}
+{% empty %}
+ <li style="text-align:center">{% trans "No search results" %}</li>
+{% endfor %}
+</ul>