{% extends "balafon/_bs_section.html" %} {% load i18n balafon_utils %} {% block section_title %}{% trans "Contacts" %}{% endblock %} {% block section_data %} {% for x in contacts %} {% if x.is_entity %} {% if x.main_contacts %} {% for c in x.main_contacts %} {% if not forloop.first %} {%endif %} {% endfor %} {% else %} {% endif %} {% else %} {% with x.entity as e %} {% if e.is_single_contact %} {% else %} {% endif %} {% endwith %} {% endif %} {% endfor %}
 {% trans "Role" %} {% trans "Phone" %}{% trans "Email" %}{% trans "City" %}
{{x}}
{{c.fullname}} {{c.get_roles|seq_to_dash}} {{c.get_phones|seq_to_dash}} {{c.get_email}} {{c.get_city|default:" "}}
{{x.fullname}} {{e}} {{x.fullname}} {%if x.has_left %}{% trans "has left" %}{% endif %} {{x.get_roles|seq_to_dash}} {{x.get_phones|seq_to_dash}} {{x.get_email}} {{x.get_city|default:" "}}
{% endblock %}