{% 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 %}
{% 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 %} | {% 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 %} |