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

{% embed '@PrestaShop/Admin/Helpers/bootstrap_popup.html.twig' with {
  id: grid.id ~ '_grid_delete_image_type_modal',
  title: 'Are you sure you want to delete this image setting?'|trans({}, 'Admin.Design.Feature'),
  closable: true,
  closeLabel: 'Cancel'|trans({}, 'Admin.Actions'),
  actions: [{
    type: 'button',
    label: 'Delete'|trans({}, 'Admin.Actions'),
    class: 'btn btn-danger btn-lg js-submit-delete-image-type',
  }],
} %}
  {% block content %}
    <div class="modal-body">
      <p>{{ 'If you delete this image format, the theme won\'t be able to use it anymore. This will result in a degraded experience on your front office.'|trans({}, 'Admin.Design.Notification') }}</p>
      {{ form_start(deleteImageTypeForm) }}
      <div class="form-wrapper w-100 p-0 mt-4">
        {% block delete_image_type_form %}
          <div class="d-flex align-items-center">
            <div class="bold">
              {{ form_label(deleteImageTypeForm.delete_images_files_too, null, {label_attr: {class: 'm-0'}}) }}
            </div>
            <div class="col-sm">
              {{ form_widget(deleteImageTypeForm.delete_images_files_too) }}
            </div>
          </div>

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