{#**
 * Copyright since 2025 InPost S.A.
 *
 * For the full license information, please view the LICENSE file bundled with the module.
 *
 * @author InPost S.A.
 * @copyright since 2025 InPost S.A.
 * @license MIT
 *#}
{% extends '@Modules/inpostinternational/views/templates/admin/layout/config_page.html.twig' %}

{% form_theme form '@Modules/inpostinternational/views/templates/admin/form_theme/horizontal_layout.html.twig' %}

{% block content %}
  <div class="row justify-content-center">
    <div class="col">
      <div class="card">
        {{ form_start(form) }}
        <h3 class="card-header">
          <i class="material-icons">local_post_office</i> {{ 'Pickup address'|trans({}, 'Modules.Inpostinternational.Configuration') }}
        </h3>

        <div class="card-body card-block row">
          <div class="form-wrapper card-text">
            {{ form_errors(form) }}

            {{ form_rest(form) }}
          </div>
        </div>

        <div class="card-footer clearfix">
          <a
              href="{{ path('admin_inpost_intl_pickup_addresses_index') }}"
              class="btn btn-outline-secondary"
          >
            {{ 'Cancel'|trans({}, 'Admin.Actions') }}
          </a>

          <button class="btn btn-primary float-right">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
        </div>
        {{ form_end(form) }}
      </div>
    </div>
  </div>
{% endblock %}
