{% extends "balafon/_bs_section.html" %} {% load i18n favorite_tags balafon_utils %} {% block section_title %} {%if partial %}{% trans "Latest contacts" %}{% else %}{% trans "All contacts" %}{%endif%} {% endblock %} {% block section_data %} {% for e in entities %}{% with counter=forloop.counter %} {% if e.is_single_contact %} {% with e.single_contact as c %} {% endwith %} {% else %} {% if e.main_contacts %} {% for c in e.main_contacts %} {% endfor %} {% else %} {% endif %} {% endif %} {% endwith %}{% endfor %}
{% trans "Contacts" %} {% trans "City" %} {% trans "Phone" %} {% trans "Email" %}
{{c.display_name }} {% for g in c.headline_groups %} {% spaceless %} {{g.name}}  {% endspaceless %} {% endfor %} {{c.city.get_friendly_name|default:" "}} {{c.get_phones|join:", "|default:" "}} {% with em=c.get_email %}{% if em %}{{em}}{% else %} {% endif %}{% endwith %}
{% if forloop.counter0 == 0 %} {{e.name}} {% for g in e.headline_groups %} {% spaceless %} {{g.name}}  {% endspaceless %} {% endfor %} {% else %}   {% endif %} {{c.display_name}} {% for g in c.headline_groups %} {% spaceless %} {{g.name}}  {% endspaceless %} {% endfor %} {{c.get_city.get_friendly_name|default:" "}} {{c.get_phones|seq_to_br|default:" "}} {% with em=c.get_email %}{% if em %}{{em}}{% else %} {% endif %}{% endwith %}
{{e.name}} {{e.city.get_friendly_name|default:" "}} {{e.get_phone|default:" "}} {% with em=e.get_email %}{% if em %}{{em}}{% else %} {% endif %}{% endwith %}
{% include "coop_cms/_pagination.html" %} {% endblock %} {% block section_buttons %} {% if partial %} {% trans "All" %} {% endif %} {% endblock %}