{% load i18n sanza_utils staticfiles favorite_tags %}
{% for a in actions %}{% if a %}
{% if SANZA_MULTI_USER %}
{% if a.in_charge %} {{a.in_charge}} {% else %} {% trans "Not assigned" %} {% endif %}
{% endif %}
{% if a.planned_date %} {% if a.end_datetime %} {{a.planned_date|date:'d/m/Y H:i'|cut_null_hour}} - {{a.end_datetime|date:'d/m/Y H:i'|cut_null_hour}} {% else %} {{a.planned_date|date:'d/m/Y H:i'|cut_null_hour}} {% endif %} {% else %} {% trans "Not planned" %} {% endif %}
{% if not a.done %} {% else %}
{% trans "done on" %}
{{a.done_date|date:'d/m/Y H:i'|cut_null_hour}}
{% endif %}
{% favorite_item object=a %}
{{a.subject}}
  {% for c in a.contacts.all %} {{ c.fullname }} {% if not c.entity.is_single_contact %} ({{ c.entity }}) {% endif %}   {% endfor %}   {% for e in a.entities.all %} {{ e }}   {% endfor %}  
{% if a.opportunity %} {{a.opportunity.name}} {% else %} {% endif %} {% if a.type %}
{{ a.type }}
{% endif %} {% if a.number %}
{% trans "Number"%}: {{a.number }}
{% endif %} {% if a.status %}
{{a.status}}
{% endif %} {% if a.amount %}
{% trans "Amount"%}:{{a.amount }}
{% endif %} {% if a.actiondocument or a.has_non_editable_document %} {% else %} {% if a.has_editable_document %} {% endif %} {% endif %}
{% endif %}{% endfor %}