{% extends "sanza/_bs_section.html" %} {% load i18n sanza_utils %} {% block section_title %}{% trans "Relationships" %}{% endblock %} {% block section_data %} {% if same_as %} {% for c in same_as %} {% with c.has_left as has_left %} {% if c.entity.is_single_contact %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endif %} {% with contact.get_relationships as relationships %} {% if relationships %} {% for r in relationships %} {% with r.contact.has_left as has_left %} {% if r.contact.entity.is_single_contact %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endif %} {% endwith %}
{%trans "Same As"%} {% if c == contact.same_as.main_contact %} {% else %} {% endif %} {{c.fullname}}{{c.fullname}} {{ c.entity }}{{c.get_roles|seq_to_dash|default:' '}} {{c.get_phones|seq_to_br}} {{c.get_email}}
{{r.type_name}}{{r.contact.fullname}}{{r.contact.fullname}} {{ r.contact.entity }}{{c.get_roles|seq_to_dash|default:' '}} {{r.contact.get_phones|seq_to_br}} {{r.contact.get_email}}
{% endblock %} {% block section_menu_name %} {% trans "Edit" %}{% endblock %} {% block section_buttons %}
  • {% trans "Same As" %}
  • {% if contact.can_add_relation %}
  • {% trans "Add relationship" %}
  • {% endif %} {% endblock %}