From 0855b1ef38c39df06ea2c135dece9c8fb3c4aa49 Mon Sep 17 00:00:00 2001 From: Jakub Brzegowski Date: Wed, 23 Feb 2022 17:03:05 +0100 Subject: [PATCH] Refactor modals with new twig component --- src/bundle/Resources/public/scss/_modals.scss | 7 -- .../account/notifications/modal.html.twig | 64 ++++------- .../content/modal/add_translation.html.twig | 62 ++++++----- .../content/modal/draft_conflict.html.twig | 86 +++++++-------- .../location_bulk_action_failed.html.twig | 73 ++++++------- .../content/modal/location_trash.html.twig | 100 +++++++++-------- .../admin/content/modal/user_delete.html.twig | 41 +++---- .../content/modal/version_conflict.html.twig | 74 ++++++------- .../tab/url/modal_add_custom_url.html.twig | 101 +++++++++--------- .../modal/delete_confirmation.html.twig | 20 ---- .../modal/delete_confirmation.html.twig | 33 +++--- .../modal/delete_confirmation.html.twig | 49 ++++----- .../modal/empty_trash_confirmation.html.twig | 56 +++++----- .../admin/ui/component/modal/modal.html.twig | 13 ++- .../modal/bulk_delete_confirmation.html.twig | 40 ++++--- .../admin/url_wildcard/modal_create.html.twig | 69 ++++++------ 16 files changed, 397 insertions(+), 491 deletions(-) delete mode 100644 src/bundle/Resources/views/themes/admin/content_type/modal/delete_confirmation.html.twig diff --git a/src/bundle/Resources/public/scss/_modals.scss b/src/bundle/Resources/public/scss/_modals.scss index b201cf009c..51393a9819 100644 --- a/src/bundle/Resources/public/scss/_modals.scss +++ b/src/bundle/Resources/public/scss/_modals.scss @@ -41,13 +41,6 @@ } } - &--wide { - .modal-dialog { - max-width: calculateRem(800px); - width: calculateRem(800px); - } - } - &--has-subtitle { .modal-header { border-bottom: 0; diff --git a/src/bundle/Resources/views/themes/admin/account/notifications/modal.html.twig b/src/bundle/Resources/views/themes/admin/account/notifications/modal.html.twig index 4ce59dba21..c18772b5e1 100644 --- a/src/bundle/Resources/views/themes/admin/account/notifications/modal.html.twig +++ b/src/bundle/Resources/views/themes/admin/account/notifications/modal.html.twig @@ -1,45 +1,25 @@ {% trans_default_domain 'notifications' %} -