diff --git a/app/views/admin/products_v3/_delete_modals.html.haml b/app/views/admin/products_v3/_delete_modals.html.haml index d2091f792b..815913925a 100644 --- a/app/views/admin/products_v3/_delete_modals.html.haml +++ b/app/views/admin/products_v3/_delete_modals.html.haml @@ -1,7 +1,8 @@ +- base_translation_key = ".delete_#{object_type}_modal" - object_ids.each do |object_id| - delete_modal = ConfirmModalComponent.new(id: "delete_#{object_type}_#{object_id}", - confirm_button_text: t(".delete_#{object_type}_modal.confirmation_text"), - cancel_button_text: t(".delete_#{object_type}_modal.cancellation_text"), + confirm_button_text: t("#{base_translation_key}.confirmation_text"), + cancel_button_text: t("#{base_translation_key}.cancellation_text"), confirm_reflexes: nil, confirm_button_class: :red, controller: "products", @@ -9,6 +10,8 @@ controller_data_values: {"current-id": object_id}, ) = render delete_modal do - .margin-bottom-30 - = t(".delete_#{object_type}_modal.prompt_html") + %h2.margin-bottom-20{style:'color: black'} + = t("#{base_translation_key}.heading") + %p + = t("#{base_translation_key}.prompt") .margin-bottom-30 diff --git a/config/locales/en.yml b/config/locales/en.yml index d6ffd0c001..4f2801982c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -818,11 +818,13 @@ en: loading: Loading your products delete_modals: delete_product_modal: - prompt_html: "