{% extends "base.html" %} {% load i18n %} {% load modeltags %} {% block context_menu %}
{% trans "Edit" %}
{% trans "Delete" %}
{% endblock %} {% block content %}
{% if contact.function %} {% with contact as object %}{% with "function" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% endif %} {% if contact.company_id %} {% with contact as object %}{% with "company_id" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% endif %}
{{ contact.email }}
{% for phonenumber in contact.phonenumber_set.all %}
{{ phonenumber.get_type_display }} : {{ phonenumber.number }}
{% endfor %}
{% if contact.is_company %} {% with contact as object %}{% with "representative" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with contact as object %}{% with "representative_function" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% endif %}
{% for contact in contact.contacts.all %} {% endfor %}
{% with contact.address as object %}{% with "street" as name %} {% include "detail_multiline_field.html" %} {% endwith %}{% endwith %} {% with contact.address as object %}{% with "zipcode" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with contact.address as object %}{% with "city" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with contact.address as object %}{% with "country" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with contact as object %}{% with "comment" as name %} {% include "detail_multiline_field.html" %} {% endwith %}{% endwith %}
{% trans "Add a master aggreement" %}

{% trans "Master aggreements" %}

{% if contact.contracts.all %}
{% for contract in contact.contracts.all %} {% endfor %}
{% trans "Title" %} {% trans "Last update" %}
{{ contract.title }} {{ contract.update_date }}
{% else %}
{% trans "No master aggreements" %}
{% endif %}
{% trans "Draw up an invoice" %}

{% trans "Invoices" %}

{% if contact.invoice_set.count %}
{% for invoice in contact.invoice_set.all %} {% endfor %}
{% trans "Id" %} {% trans "State" %} {% trans "Amount" %}
{{ invoice.invoice_id }} {{ invoice.get_state_display }} {{ invoice.amount|default:"" }}
{% else %}
{% trans "No invoices" %}
{% endif %} {% endblock %}