mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
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
This commit is contained in:
@@ -1233,10 +1233,10 @@ class TemplateAndFoldersSelectionForm(Form):
|
|||||||
]
|
]
|
||||||
|
|
||||||
self.add_template_by_template_type.choices = list(filter(None, [
|
self.add_template_by_template_type.choices = list(filter(None, [
|
||||||
('email', 'Email template'),
|
('email', 'Email'),
|
||||||
('sms', 'Text message template'),
|
('sms', 'Text message'),
|
||||||
('letter', 'Letter template') if allow_adding_letter_template else None,
|
('letter', 'Letter') if allow_adding_letter_template else None,
|
||||||
('copy-existing', 'Copy of an existing template') if allow_adding_copy_of_template else None,
|
('copy-existing', 'Copy an existing template') if allow_adding_copy_of_template else None,
|
||||||
]))
|
]))
|
||||||
|
|
||||||
def is_selected(self, template_folder_id):
|
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')])
|
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')])
|
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'),
|
required_for_ops('add-new-template'),
|
||||||
Optional(),
|
Optional(),
|
||||||
], required_message='Select the type of template you want to add')
|
], required_message='Select the type of template you want to add')
|
||||||
|
|||||||
Reference in New Issue
Block a user