{% extends "sanza/_section.html" %} {% load i18n sanza_utils pagination_tags %}{% load url from future %} {% block section_title %} {% if all_actions and entity %} {{title}} - {{entity.name}} {% else %} {% if all_actions and contact %} {{title}} - {{contact.fullname}} {% else %} {% trans "Actions" %} {% for d in days_choice %} {% blocktrans %}Next {{d}} days{% endblocktrans %} {% endfor %} {% endif %}{% endif %} {% endblock %} {% block section_data %} {% include "Crm/_actions_table_script.html" %} {% if actions %} {% if all_actions %}{% autopaginate actions 25 %}{% endif %} {% include "Crm/_actions_table.html" %} {% if all_actions %}{% paginate %}{% endif %} {% endif %} {% endblock %} {% block section_action %} {% if contact %} {% trans "Add" %} {% if not all_actions %} {% trans "All actions" %} {% endif %} {% else %} {% if entity %} {% trans "Add" %} {% if not all_actions %} {% trans "All actions" %} {% endif %} {% else %} {% trans "Add" %} {% if not all_actions %} {% trans "All actions" %} {% endif %} {% endif %}{% endif %} {% if SANZA_MULTI_USER %} {% trans "See my actions" %} {% endif %} {% endblock %}