{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

<div class="card d-none" id="addresses-block">
  <h3 class="card-header">
    {{ 'Addresses'|trans({}, 'Admin.Global') }}
  </h3>
  <div class="card-body">
    <div class="d-none" id="addresses-warning">
        <div class="alert alert-warning">
          <div class="alert-text">
            {{ 'You must add at least one address to process the order.'|trans({}, 'Admin.Orderscustomers.Notification') }}
          </div>
        </div>
    </div>
    <div class="row d-none" id="addresses-content">
      <div class="col-md-6">
        <label for="delivery-address-select">{{ 'Delivery'|trans({}, 'Admin.Global') }}</label>
        <select class="form-control js-address-select custom-select" id="delivery-address-select"></select>

        <div class="card mt-3">
          <div class="card-body clearfix">
            <a class="btn btn-outline-primary float-right" id="js-delivery-address-edit-btn">{{ 'Edit'|trans({}, 'Admin.Actions') }}</a>
            <div id="delivery-address-details"></div>
          </div>
        </div>
      </div>
      <div class="col-md-6">
        <label for="invoice-address-select">{{ 'Invoice'|trans({}, 'Admin.Global') }}</label>
        <select class="form-control js-address-select custom-select" id="invoice-address-select"></select>

        <div class="card mt-3">
          <div class="card-body clearfix">
            <a class="btn btn-outline-primary float-right" id="js-invoice-address-edit-btn">{{ 'Edit'|trans({}, 'Admin.Actions') }}</a>
            <div id="invoice-address-details"></div>
          </div>
        </div>
      </div>
    </div>

    <a class="btn btn-primary" id="js-add-address-btn" href="{{ path('admin_addresses_create', {liteDisplaying: 1, submitFormAjax: 1}) }}">
      {{ 'Add new address'|trans({}, 'Admin.Orderscustomers.Feature') }}
    </a>

  </div>
</div>
