{% load i18n creme_perms mobile_tags %}{% load bool from creme_core_tags %} {% if user|has_perm_to_view:orga %} {% mobile_prepare_fields orga 'billing_address' 'phone' %} {% with address=orga.billing_address %}{% with has_address=address|bool %}
{% translate 'organisation' %} {% if has_address %} {{orga}} {% else %} {{orga}} {% endif %}
{% with phone=orga.phone %} {% if phone %}
{% translate 'phone' %} {{phone}}
{% endif %} {% endwith %} {% if has_address %}
{% translate 'address' %} {{address|linebreaksbr}}
{% endif %}
{% endwith %}{% endwith %} {% else %}
{% translate 'organisation' %} ??
{% endif %}