{% extends "balafon/_bs_section.html" %} {% load i18n balafon_utils %} {% block section_title %}{% trans "Relationships" %}{% endblock %} {% block section_data %} {% if same_as %} {% for same_as_contact in same_as %} {% with same_as_contact.has_left as has_left %} {% spaceless %} {% if same_as_contact.entity.is_single_contact %} {% else %} {% endif %} {% endspaceless %} {% endwith %} {% endfor %} {% endif %} {% with contact.get_relationships as relationships %} {% if relationships %} {% for relationship in relationships %} {% with relationship.contact.has_left as has_left %} {% if relationship.contact.entity.is_single_contact %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endif %} {% endwith %}
{{ same_as_contact.same_as_priority }} {% trans "Same As" %} {{same_as_contact.fullname}} {{same_as_contact.fullname}} {% if has_left %}{% trans "has left" %}{% endif %} {{ same_as_contact.entity }}{{same_as_contact.get_roles|seq_to_dash|default:' '}} {{same_as_contact.get_phones|seq_to_br}} {{same_as_contact.get_email}}
{{relationship.type_name}}{{relationship.contact.fullname}} {{relationship.contact.fullname}} {% if has_left %}{% trans "has left" %}{% endif %} {{ relationship.contact.entity }}{{relationship.contact.get_roles|seq_to_dash|default:' '}} {{relationship.contact.get_phones|seq_to_br}} {{relationship.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 %}