diff --git a/app/main/forms.py b/app/main/forms.py index 7a3ed88e7..1edf1ceb9 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -7,7 +7,7 @@ from wtforms import ( ValidationError, TextAreaField, FileField, - SelectField + RadioField ) from wtforms.validators import DataRequired, Email, Length, Regexp @@ -193,7 +193,8 @@ class TemplateForm(Form): name = StringField( u'Template name', validators=[DataRequired(message="Template name cannot be empty")]) - template_type = SelectField(u'Template type', choices=[('sms', 'SMS')]) + template_type = RadioField(u'Template type', choices=[('sms', 'SMS')]) + template_content = TextAreaField( u'Message', validators=[DataRequired(message="Template content cannot be empty")]) diff --git a/app/templates/views/edit-template.html b/app/templates/views/edit-template.html index bc991d5de..1102630d1 100644 --- a/app/templates/views/edit-template.html +++ b/app/templates/views/edit-template.html @@ -12,7 +12,15 @@ GOV.UK Notify | Edit template