Validate name field on ServiceUpdateEmailBranding form

This introduces a validator to validate that the name field is not empty
on the ServiceUpdateEmailBranding form, but only if the form details are
being submitted. If a file is being uploaded, the name is allowed to be
empty.
This commit is contained in:
Katie Smith
2019-01-25 16:54:24 +00:00
parent 52acf890dd
commit 5b77329e63
3 changed files with 61 additions and 0 deletions

View File

@@ -29,6 +29,8 @@
{{ radios(form.brand_type) }}
{{ page_footer(
'Save',
button_name='operation',
button_value='email-branding-details',
back_link=url_for('.email_branding'),
back_link_text='Back to email branding selection',
) }}