<link type="text/css" rel="stylesheet" href="{{ asset('css/admin/legacy/order/view.css', 'GlsPoland') }}">

<div class="tab-pane gls-poland-order-consignments-grid" id="gls_poland_consignments">
  <div class="card">
    <div class="card-body">
    {% embed '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' %}
      {% block grid_view_block %}
        {% embed '@PrestaShop/Admin/Common/Grid/grid.html.twig' %}
          {% block grid_footer_row %}{% endblock %}
        {% endembed %}
      {% endblock %}

      {% block grid_panel_footer %}
        <div class="card-footer text-right d-print-none">
          <a class="btn btn-default" href="{{ url('admin_gls_poland_consignments_index') }}">
            {{ 'Go to consignments list'|trans({}, 'Modules.Glspoland.Order') }}
          </a>
          {% if can_create %}
            <button
                type="button"
                class="btn btn-primary js-create-gls-poland-consignment"
                data-url="{{ path('admin_gls_poland_orders_create_consignment', {
                  'id': order_id,
                  'liteDisplaying': true,
                }) }}"
                data-modal-title="{{ 'Create new consignment'|trans({}, 'Modules.Glspoland.Order') }}"
            >
              {{ 'New consignment'|trans({}, 'Modules.Glspoland.Order') }}
            </button>
            <script src="{{ asset('js/admin/order/view.js', 'GlsPoland') }}"></script>
          {% endif %}
        </div>
      {% endblock %}
    {% endembed %}
    </div>
  </div>
</div>
