{% load static %} {% load servo_tags %} {% load humanize %} {% load cache %} {% load i18n %}
{% 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:"" }} |
|
{% trans "No orders found" %} |