aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/search/results/customers.html
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/search/results/customers.html')
-rwxr-xr-xservo/templates/search/results/customers.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/servo/templates/search/results/customers.html b/servo/templates/search/results/customers.html
new file mode 100755
index 0000000..6203598
--- /dev/null
+++ b/servo/templates/search/results/customers.html
@@ -0,0 +1,26 @@
+{% extends "search/spotlight.html" %}
+{% load i18n %}
+
+{% block second_column %}
+ {% if customers %}
+ {% for i in customers %}
+ <address>
+ <strong><a href="{% url 'customers-view_customer' i.pk %}">{{ i.name }}</a></strong><br>
+ {% if i.street_address %}
+ {{ i.street_address }}<br/>
+ {{ i.zip_code }}, {{ i.city }}<br/>
+ {% endif %}
+ {% if i.phone %}
+ <abbr title="{% trans "Phone" %}">P:</abbr> {{ i.phone }}
+ {% endif %}
+ {% if i.email %}
+ <br/>
+ <a href="{% url 'notes-create_to_customer' customer=i.pk %}"><i class="icon-envelope"></i> {{ i.email }}</a>
+ {% endif %}
+ </address>
+ <hr/>
+ {% endfor %}
+ {% else %}
+ <h1 class="muted text-center">{% trans "No customers found" %}</h1>
+ {% endif %}
+{% endblock second_column %}