{{ header }}
  <div class="ftr-grid" id="address-message-info" data-success="{{ data.configurations.success }}" data-warning="{{ data.configurations.error_warning }}">
    {% for result in data.configurations.addresses %}
      <div class="ftr-grid__card" {{ (result.default) ? 'style="order: -1;"' : '' }} >
        <div class="ftr-dropdown ftr-js-dropdown">
          <div class="ftr-js-dropdown__display">
            <span class="ftr-dropdown__display"></span>
          </div>
          <div class="ftr-dropdown__content ftr-js-dropdown__content">
            <a href="{{ result.update }}" class="ftr-dropdown__content__item ftr-js-ripple-effect">{{ button_edit }}</a>
            {% if result.default != '1' %}
              <a href="{{ result.delete }}" class="ftr-dropdown__content__item ftr-js-ripple-effect">{{ button_delete }}</a>
            {% endif %}
          </div>
        </div>
        {% if result.default %}
          <span class="ftr-text--s ftr-block ftr-text--primary">{{ text_default }}</span>
        {% endif %}
        <span class="ftr-text--m ftr-block ftr-text-dark">{{ result.firstname }} {{ result.lastname }} {{ (result.apelido) ? '(' ~ result.apelido ~ ')' : '' }}</span>
        <span class="ftr-text--s ftr-block ftr-text--grey">{{ result.address_1 }}, {{ result.numero }}</span>
        <span class="ftr-text--s ftr-block ftr-text--grey">{{ (result.address_2) ? result.address_2 ~ ' - ' : '' }}{{ result.city }} / {{ result.zone_code }}</span>
        <span class="ftr-text--s ftr-block ftr-text--grey">{{ result.postcode[:5] }}-{{ result.postcode[5:] }}</span>
        {% if result.complemento %}
          <span class="ftr-text--s ftr-block ftr-text--grey">{{ result.complemento }}</span>
        {% endif %}
      </div>
    {% endfor %}
  </div>
  <a href="{{ data.configurations.insert }}" class="ftr-btn ftr-btn--fab ftr-background--primary ftr-js-ripple-effect">
    <i class="material-icons">&#xE145;</i>
  </a>
{{ footer }}
