mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Convert BaseTemplateForm to use new fields
Updates StringField to GovukTextInputField. These changes also affect the following forms that inherit from BaseTemplateForm: - SMSTemplateForm - EmailTemplateForm Includes changes to templates that use these forms and associated tests.
This commit is contained in:
@@ -1180,19 +1180,19 @@ class ConfirmPasswordForm(StripWhitespaceForm):
|
||||
|
||||
|
||||
class BaseTemplateForm(StripWhitespaceForm):
|
||||
name = StringField(
|
||||
u'Template name',
|
||||
name = GovukTextInputField(
|
||||
"Template name",
|
||||
validators=[DataRequired(message="Cannot be empty")])
|
||||
|
||||
template_content = TextAreaField(
|
||||
u'Message',
|
||||
"Message",
|
||||
validators=[
|
||||
DataRequired(message="Cannot be empty"),
|
||||
NoCommasInPlaceHolders()
|
||||
]
|
||||
)
|
||||
process_type = RadioField(
|
||||
'Use priority queue?',
|
||||
"Use priority queue?",
|
||||
choices=[
|
||||
('priority', 'Yes'),
|
||||
('normal', 'No'),
|
||||
|
||||
Reference in New Issue
Block a user