From 8183ba824345ccbddda9e5a533d048d51eae7d1b Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Mon, 4 Nov 2024 13:07:46 +0100 Subject: [PATCH] IBX-9169: CS --- .../views/themes/admin/trash/list.html.twig | 451 +++++++++--------- 1 file changed, 226 insertions(+), 225 deletions(-) diff --git a/src/bundle/Resources/views/themes/admin/trash/list.html.twig b/src/bundle/Resources/views/themes/admin/trash/list.html.twig index bcd19bfb96..7fd7997de3 100644 --- a/src/bundle/Resources/views/themes/admin/trash/list.html.twig +++ b/src/bundle/Resources/views/themes/admin/trash/list.html.twig @@ -24,9 +24,9 @@ {% endblock %} {% block content %} - {% set trash_search_params = app.request.get('trash_search') %} + {% set trash_search_params = app.request.get('trash_search') %} -
+
{% set collapsible_items = [ form_row(form_search.content_name, { 'attr': {'class': 'ibexa-trash-search-form__item'} @@ -64,12 +64,12 @@
- {% include '@ibexadesign/ui/modal/bulk_delete_confirmation.html.twig' with { - 'id': modal_data_target, - 'message': 'trash.modal.message'|trans|desc('Delete the selected items permanently?'), - 'data_click': '#trash_item_delete_delete', - } %} - {% endif %} - {% endblock %} - {% endembed %} - {% endblock %} - {% endembed %} - - {{ form_widget(form_trash_item_restore._token) }} - {{ form_end(form_trash_item_restore, { 'render_rest': false }) }} - - {{ form_start(form_trash_item_delete, { - 'action': path('ibexa.trash.delete', { 'trash_search': trash_search_params }) - }) }} - {% for key, form in form_trash_item_delete.trash_items %} - {% set trash_item = trash_items[key] %} - {{ form_widget(form) }} - {% endfor %} - {{ form_widget(form_trash_item_delete._token) }} - {{ form_widget(form_trash_item_delete.delete) }} - {{ form_end(form_trash_item_delete, { 'render_rest': false }) }} - - {% if pager.haveToPaginate %} - {% include '@ibexadesign/ui/pagination.html.twig' with { - 'pager': pager, - 'paginaton_params' : { - 'pageParameter': '[trash_search][page]' - } - } %} - {% endif %} - {% include '@ibexadesign/trash/modal/empty_trash_confirmation.html.twig' with {'form': form_trash_empty, 'trash_items_count': pager.nbResults} %} -
+ + {% include '@ibexadesign/ui/modal/bulk_delete_confirmation.html.twig' with { + 'id': modal_data_target, + 'message': 'trash.modal.message'|trans|desc('Delete the selected items permanently?'), + 'data_click': '#trash_item_delete_delete', + }%} + {% endif %} + {% endblock %} + {% endembed %} + {% endblock %} + {% endembed %} + + {{ form_widget(form_trash_item_restore._token) }} + {{ form_end(form_trash_item_restore, { 'render_rest': false }) }} + + {{ form_start(form_trash_item_delete, { + 'action': path('ibexa.trash.delete', { 'trash_search': trash_search_params }) + }) }} + {% for key, form in form_trash_item_delete.trash_items %} + {% set trash_item = trash_items[key] %} + {{ form_widget(form) }} + {% endfor %} + {{ form_widget(form_trash_item_delete._token) }} + {{ form_widget(form_trash_item_delete.delete) }} + {{ form_end(form_trash_item_delete, { 'render_rest': false }) }} + + {% if pager.haveToPaginate %} + {% include '@ibexadesign/ui/pagination.html.twig' with { + 'pager': pager, + 'paginaton_params' : { + 'pageParameter': '[trash_search][page]' + } + } %} + {% endif %} + {% include '@ibexadesign/trash/modal/empty_trash_confirmation.html.twig' with {'form': form_trash_empty, 'trash_items_count': pager.nbResults} %} +
{% endblock %} {% block react_modules %}