From e4d533e65a92149137848134f8a97efb67d89a23 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Jan 2022 11:22:33 +0100 Subject: [PATCH] E-Mails als HTML verschicken: Bearbeiten vordefinierter E-Mail-Texte --- bin/mozilla/generictranslations.pl | 1 + .../webpages/generictranslations/edit_email_strings.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/generictranslations.pl b/bin/mozilla/generictranslations.pl index 4e6d26328..de7d924bd 100644 --- a/bin/mozilla/generictranslations.pl +++ b/bin/mozilla/generictranslations.pl @@ -178,6 +178,7 @@ sub edit_email_strings { setup_generictranslations_edit_email_strings_action_bar(); $form->{title} = $locale->text('Edit preset email strings'); + $::request->{layout}->use_javascript(map { "${_}.js" } qw(ckeditor/ckeditor ckeditor/adapters/jquery)); $form->header(); print $form->parse_html_template('generictranslations/edit_email_strings',{ 'MAIL_STRINGS' => \%mail_strings }); diff --git a/templates/webpages/generictranslations/edit_email_strings.html b/templates/webpages/generictranslations/edit_email_strings.html index 2db858dad..a25cc7e41 100644 --- a/templates/webpages/generictranslations/edit_email_strings.html +++ b/templates/webpages/generictranslations/edit_email_strings.html @@ -28,8 +28,8 @@ [%- END %] - [%- IF mail_string.search('preset') %] - + [%- IF mail_string.search('preset') && !mail_string.search('subject')%] + [%- ELSE %] [%- END %] -- 2.20.1