{% embed '@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig' with {
  'id': 'create_pickup_modal',
  'title': 'Create pickup'|trans({}, 'Modules.Glspoland.Consignment'),
  'closable': true,
  'actions': [{
    'type': 'button',
    'label': 'Submit'|trans({}, 'Admin.Actions'),
    'class': 'btn btn-primary btn-lg js-submit-modal-form-btn',
  }],
} %}
  {% block content %}
    <div class="modal-body">
      <div class="alert alert-warning">
        {{ 'Please note that after a pickup has been created deleting the consignments from the system will no longer be possible.'|trans({}, 'Modules.Glspoland.Consignment') }}
      </div>

      {{ form_start(create_pickup_form, {
        'attr': {
          'data-bulk-inputs-id': create_pickup_form.consignmentIds.vars.id
        }
      }) }}

      {{ form_widget(create_pickup_form.consignmentIds) }}
      {{ form_rest(create_pickup_form) }}

      {{ form_end(create_pickup_form) }}
    </div>
  {% endblock %}
{% endembed %}
