From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/orders/list.html | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 servo/templates/orders/list.html (limited to 'servo/templates/orders/list.html') diff --git a/servo/templates/orders/list.html b/servo/templates/orders/list.html new file mode 100755 index 0000000..2e5347b --- /dev/null +++ b/servo/templates/orders/list.html @@ -0,0 +1,43 @@ +{% load staticfiles %} +{% load servo_tags %} +{% load humanize %} +{% load cache %} +{% load i18n %} + + + + + + + + + + + + + + {% for order in orders %} + + + + + + + + {% empty %} + + + + {% endfor %} + +
{% trans "Order" %}{% trans "Customer" %}{% trans "Created" %}{% trans "Assigned to" %}{% trans "Status" %}
{{ order.code }}{% if order.customer_name %}{{ order.customer_name }}{% else %}{% trans "No customer" %}{% endif %}
{% if order.description %}{{ order.description }}{% else %}{% trans "No description" %}{% endif %} {% cache 120 order_tags order.pk %} {% for t in order.tags.all %}{{ t.title }} {% endfor %}{% endcache %}
{{ order.created_at|naturaltime }}
{{ order.created_at|date:"SHORT_DATETIME_FORMAT" }}
+ {% if order.user %} + {{ order.get_user_name }}
+ {{ order.started_at|naturaltime|default:"" }} + {% else %} + {% trans "Nobody" %} + {% endif %} +
{% if order.status_name %}{{ order.status_name }}{% else %}{% trans "No status" %}{% endif %}
{{ order.status_started_at|naturaltime|default:"" }}
{{ order.status_name }}
{% trans "No orders found" %}
+ {% if orders.paginator %} + {% include "pagination.html" with items=orders %} + {% endif %} -- cgit v1.2.3