From 18e70f517116e5250a510fded8d7bb2fc6625a82 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Thu, 8 Aug 2024 18:27:51 +0200 Subject: [PATCH] IBX-8418: Added drafts deletion warning to trash modal --- src/bundle/Resources/translations/messages.en.xliff | 5 +++++ .../themes/admin/content/modal/location_trash.html.twig | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/bundle/Resources/translations/messages.en.xliff b/src/bundle/Resources/translations/messages.en.xliff index 9f1dc7c5d5..d2e047d42d 100644 --- a/src/bundle/Resources/translations/messages.en.xliff +++ b/src/bundle/Resources/translations/messages.en.xliff @@ -683,6 +683,11 @@ Are you sure you want to send this Content item to Trash? key: trash.modal.send_to_trash.message + + Sending this content item to Trash will also delete all drafts of content items that haven’t been published yet, and belong to the trashed subtree. + Sending this content item to Trash will also delete all drafts of content items that haven’t been published yet, and belong to the trashed subtree. + key: trash.modal.send_to_trash_draft_warning.message + If you wish to delete these assets too, first make sure they are not used by other content. To check, go to the asset preview and look at its content Relations in the Relations tab. If you wish to delete these assets too, first make sure they are not used by other content. To check, go to the asset preview and look at its content Relations in the Relations tab. diff --git a/src/bundle/Resources/views/themes/admin/content/modal/location_trash.html.twig b/src/bundle/Resources/views/themes/admin/content/modal/location_trash.html.twig index 2e3fb3c7bd..35ef9e12da 100644 --- a/src/bundle/Resources/views/themes/admin/content/modal/location_trash.html.twig +++ b/src/bundle/Resources/views/themes/admin/content/modal/location_trash.html.twig @@ -15,6 +15,13 @@ {% endblock %} {% block body_content %} {{ 'trash.modal.send_to_trash.message'|trans|desc('Are you sure you want to send this Content item to Trash?') }} +
+

+ +

+
{% for option in form.trash_options %}