{% extends "sanza/_section.html" %} {% load i18n pagination_tags %}{% load url from future %} {% block section_title %} {%if partial %}{% trans "Latest entities" %}{% else %}{% trans "All entities" %}{%endif%} {% endblock %} {% block section_data %} {% autopaginate entities 25 %}
{% trans "Contacts" %} | {% trans "City" %} | {% trans "Last action" %} | {% trans "Next action" %} | |||
---|---|---|---|---|---|---|
{{c.lastname}} {{c.firstname}} | {% endwith %} {% else %}{{e.name}} |
{% if e.main_contacts %}
{% for c in e.main_contacts %}{{c.fullname}} {% endfor %} {% else %} {% endif %} |
{% endif %}
{{e.city.get_friendly_name|default:" "}} | {% with e.last_action as action %} {% if action %} {{action.done_date|date:"d F Y"}}: {{action.subject}} {% else %} {% endif %} {% endwith %} | {% with e.next_action as action %} {% if action %} {{action.planned_date|date:"d F Y"}}: {{action.subject}} {% else %} {% endif %} {% endwith %} |