<form id="form-address-list" method="post" data-oc-toggle="ajax" data-oc-load="{{ action }}" data-oc-target="#address">
  <table class="table table-bordered table-hover">
    <tbody>
      {% for address in addresses %}
        <tr>
          <td>
            {{ address.firstname }} {{ address.lastname }}
            <br/>
            {% if address.company %}
              {{ address.company }}
              <br/>
            {% endif %}
            {{ address.address_1 }}
            <br/>
            {% if address.address_2 %}
              {{ address.address_2 }}
              <br/>
            {% endif %}
            {{ address.city }}
            <br/>
            {% if address.postcode %}
              {{ address.postcode }}
              <br/>
            {% endif %}
            {% if address.zone %}
              {{ address.zone }}
              <br/>
            {% endif %}
            {{ address.country }}</td>
          <td>{% if address.default %}<strong>{{ text_default }}</strong>{% endif %}</td>
          <td class="text-end"><button type="button" value="{{ address.edit }}" data-bs-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa-solid fa-pencil"></i></button> <button type="submit" form="form-address-list" formaction="{{ address.delete }}" data-bs-toggle="tooltip" title="{{ button_delete }}" onclick="return confirm('{{ text_confirm }}');" class="btn btn-danger"><i class="fa-regular fa-trash-can"></i></button></td>
        </tr>
      {% endfor %}
    </tbody>
    <tfoot>
      <tr>
        <td colspan="2"></td>
        <td class="text-end"><button type="button" value="{{ address_add }}" data-bs-toggle="tooltip" title="{{ button_address_add }}" class="btn btn-primary"><i class="fa-solid fa-plus-circle"></i></button></td>
      </tr>
    </tfoot>
  </table>
</form>