{#**
 * 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/layout.html.twig' %}

{% set layoutHeaderToolbarBtn = layoutHeaderToolbarBtn|default({})|merge({
  config: {
    href: path('admin_inpost_intl_config_api'),
    desc: 'Configuration'|trans({}, 'Admin.Global'),
    icon: 'settings',
    class: 'btn-outline-secondary',
  },
}) %}

{% block content %}
  {% embed '@Modules/inpostinternational/views/templates/admin/shipment/_form.html.twig' %}
    {% block footer_buttons %}
      <a href="{{ path('admin_orders_view', {orderId: orderId}) }}" class="btn btn-outline-secondary">
        {{ 'Cancel'|trans({}, 'Admin.Actions') }}
      </a>

      {{ parent() }}
    {% endblock %}
  {% endembed %}
{% endblock %}

{% block javascripts %}
  {{ parent() }}

  <script src="{{ asset('js/admin/shipment/form.js', 'InPostInternational') }}"></script>
{% endblock %}
