{% load cms_tags allink_cms_tags sekizai_tags i18n thumbnail allink_image_tags %} {# A map only makes sense, when locations are assigned #} {% if object_list %} {% for object in object_list %}
{% render_model_ajax object.primary_contact "first_name" %} {% render_model_ajax object.primary_contact "last_name" %}
{% if object.primary_contact.job_function %}
{{object.primary_contact.job_function}}
{% endif %}
{% if object.subtitle %}
{{object.subtitle}}
{% endif %}
{% if object.address_1 %}
{{ object.address_1 }}
{{ object.address_2 }}
{{ object.address_3 }}
{% endif %}
{% if object.address_4 %}
{{ object.address_4 }}
{% endif %}
{% if object.email %}
{% include "partials/buttons/link.html" with link_prefix="mailto:" link_url=object.email link_label=object.email link_classes="text" %}
{% endif %}
{% if object.phone %}
{% trans "Phone:" %} {% include "partials/buttons/link.html" with link_prefix="tel:" link_url=object.phone link_label=object.phone_formatted link_classes="text" %}
{% endif %}
{% if object.mobile %}
{% trans "Mobile:" %} {% include "partials/buttons/link.html" with link_prefix="tel:" link_url=object.mobile link_label=object.mobile_formatted link_classes="text" %}
{% endif %}
{% if object.fax %}
{% trans "Fax:" %} {% include "partials/buttons/link.html" with link_prefix="tel:" link_url=object.fax link_label=object.fax_formatted link_classes="text" %}
{% endif %}
{% trans "Directions" as link_label %} {% include "partials/buttons/link.html" with link_url=object.map_link link_label=link_label link_classes="text" link_attributes='target="_blank" rel="noopener"' icon="arrow-external" %}
{% endif %} {% if object.opening_hours_display %}