Remove add template as separate page

This has moved to the choose template page.
This commit is contained in:
Chris Hill-Scott
2019-02-11 16:09:08 +00:00
parent 3a5bfeb7aa
commit 7d7b790dc1
7 changed files with 17 additions and 166 deletions

View File

@@ -938,28 +938,6 @@ class DateFilterForm(StripWhitespaceForm):
include_from_test_key = BooleanField("Include test keys", default="checked", false_values={"N"})
class ChooseTemplateType(StripWhitespaceForm):
template_type = RadioField(
'',
validators=[
DataRequired()
]
)
def __init__(self, include_letters=False, include_copy=False, *args, **kwargs):
super().__init__(*args, **kwargs)
self.template_type.choices = filter(None, [
('email', 'Email template'),
('sms', 'Text message template'),
('letter', 'Letter template') if include_letters else None,
('copy-existing', 'Copy of an existing template') if include_copy else None,
('folder', 'Folder'),
])
class SearchByNameForm(StripWhitespaceForm):
search = SearchField('Search by name')