Require name when adding email branding

Otherwise name can be blank and it never appears in the list, so you can’t find it again.
This commit is contained in:
Chris Hill-Scott
2018-09-06 11:45:53 +01:00
parent 29f5a86ff6
commit 1bd7df7797
2 changed files with 13 additions and 4 deletions

View File

@@ -729,7 +729,7 @@ class GovernmentDomainField(StringField):
class ServiceUpdateEmailBranding(StripWhitespaceForm):
name = StringField('Name of brand')
name = StringField('Name of brand', validators=[DataRequired()])
text = StringField('Text')
domain = GovernmentDomainField('Domain')
colour = StringField(