mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-05 14:11:41 -04:00
Mapped template actions to the api and mocked tests.
This commit is contained in:
@@ -6,7 +6,8 @@ from wtforms import (
|
||||
PasswordField,
|
||||
ValidationError,
|
||||
TextAreaField,
|
||||
FileField
|
||||
FileField,
|
||||
SelectField
|
||||
)
|
||||
from wtforms.validators import DataRequired, Email, Length, Regexp
|
||||
|
||||
@@ -187,8 +188,13 @@ class ConfirmPasswordForm(Form):
|
||||
|
||||
|
||||
class TemplateForm(Form):
|
||||
template_name = StringField(u'Template name')
|
||||
template_body = TextAreaField(u'Message')
|
||||
name = StringField(
|
||||
u'Template name',
|
||||
validators=[DataRequired(message="Template name cannot be empty")])
|
||||
template_type = SelectField(u'Template type', choices=[('sms', 'SMS')])
|
||||
content = TextAreaField(
|
||||
u'Message',
|
||||
validators=[DataRequired(message="Template content cannot be empty")])
|
||||
|
||||
|
||||
class ForgotPasswordForm(Form):
|
||||
|
||||
Reference in New Issue
Block a user