{% for location in locations %}
{% endfor %}
{% else %}
{% if show_list_and_map_in_seperate_tabs %}
{{'List'|trans}}
{{'Map'|trans}}
{% endif %}
{% if not show_list_and_map_in_seperate_tabs or currentView == 'map' %}
{% if show_list_and_map_in_seperate_tabs and countries %}
{{openForm}}
{{'Select Country'|trans}}
{{closeForm}}
{% endif %}
{% endif %}
{% if not show_list_and_map_in_seperate_tabs or currentView == 'list' %}
{% if countries or enable_postcode_search %}
{{openForm}}
{% endif %}
{% if countries %}
{{'Select Country'|trans}}
{% endif %}
{% if enable_postcode_search %}
{{'Search by Postcode'|trans}}
{% if postcode_error %}
{{postcode_error|escape}}
{% endif %}
{% endif %}
{% if countries or enable_postcode_search %}
{{closeForm}}
{% endif %}
{% if postcode_search_success %}
{{'Results'|trans}}
{% endif %}
{% for tab in tabs %}
{% if tab.title %}
{{ tab.title | trans | escape }}
{% endif %}
{% endfor %}
{% if show_locations_list %}
{% for tab in tabs %}
{% if tab.title %}
{{ tab.title | trans | escape }}
{% endif %}
{% for location in tab.locations %}
{% if location.list_image %}
{% endif %}
{% if location.postcode_index %}
{{location.postcode_index|escape}}
{% endif %}
{{location.name|escape}}
{% if location.postcode_distance %}
{{location.postcode_distance|escape}}
{% endif %}
{% if location.nearest %}
{{'(nearest)'|trans}}
{% endif %}
{% set addressline = [] %}
{% if location.address1 %}
{% set addressline = addressline|merge([location.address1]) %}
{% endif %}
{% if location.address2 %}
{% set addressline = addressline|merge([location.address2]) %}
{% endif %}
{% if location.locality %}
{% set addressline = addressline|merge([location.locality]) %}
{% endif %}
{% if location.city %}
{% set addressline = addressline|merge([location.city]) %}
{% endif %}
{% if location.state %}
{% set addressline = addressline|merge([location.state]) %}
{% endif %}
{% if location.postcode %}
{% set addressline = addressline|merge([location.postcode]) %}
{% endif %}
{% if addressline|length %}
{{addressline|escape|join(', ')}}
{% endif %}
{% if location.phone %}
{% set phone = location.phone|escape %}