{% extends "sanza/tab_form.html" %} {% load i18n %}{% load url from future %} {% block doc_header %} {% if not contact.entity.is_single_contact %} {{contact.entity}} {% endif %} {{contact}} {% if action %}

{% trans "Edit action" %}

{% else %}

{% trans "Create action" %}

{% endif %} {% if action.done %}

{% trans "This action has be done on" %} {{action.done_date}}

{% endif %}

{% if entity %} {% trans "Entity" %}: {{entity.name}} {% else %}{% if contact %} {% trans "Contact" %}: {{contact.fullname}} {% endif %}{% endif %}

{% endblock %} {% block form_buttons %} {% if action %} {% trans "Delete" %} {% endif %} {% if entity %} {% trans "Cancel" %} {% else %}{% if contact %} {% trans "Cancel" %} {% endif %}{% endif %} {% endblock %} {% block doc_footer %} {% include "sanza/_calendar.html" with field="date" yearRange="c:c+2" %} {% endblock %}