From aaacf69fdcaef360d081e5b7ec9d763691bf63d3 Mon Sep 17 00:00:00 2001 From: karlchillmaid Date: Wed, 20 Feb 2019 14:39:40 +0000 Subject: [PATCH] Updated new template menu content Updated new template menu content to make it consistent with the `New template` button and `Copy an existing template` page --- app/main/forms.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main/forms.py b/app/main/forms.py index 525e20737..ddaf23e4e 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -1233,10 +1233,10 @@ class TemplateAndFoldersSelectionForm(Form): ] self.add_template_by_template_type.choices = list(filter(None, [ - ('email', 'Email template'), - ('sms', 'Text message template'), - ('letter', 'Letter template') if allow_adding_letter_template else None, - ('copy-existing', 'Copy of an existing template') if allow_adding_copy_of_template else None, + ('email', 'Email'), + ('sms', 'Text message'), + ('letter', 'Letter') if allow_adding_letter_template else None, + ('copy-existing', 'Copy an existing template') if allow_adding_copy_of_template else None, ])) def is_selected(self, template_folder_id): @@ -1277,7 +1277,7 @@ class TemplateAndFoldersSelectionForm(Form): add_new_folder_name = StringField('Folder name', validators=[required_for_ops('add-new-folder')]) move_to_new_folder_name = StringField('Folder name', validators=[required_for_ops('move-to-new-folder')]) - add_template_by_template_type = RadioFieldWithRequiredMessage('Add new', validators=[ + add_template_by_template_type = RadioFieldWithRequiredMessage('New template', validators=[ required_for_ops('add-new-template'), Optional(), ], required_message='Select the type of template you want to add')