Add 'name' field to brand creation/edit page

This commit is contained in:
Tom Byers
2018-08-09 16:24:22 +01:00
parent eb64033ff3
commit 1269071da2
4 changed files with 9 additions and 3 deletions

View File

@@ -78,12 +78,14 @@ def update_email_branding(branding_id, logo=None):
branding_id=branding_id,
logo=logo,
name=form.name.data,
text=form.text.data,
colour=form.colour.data
)
return redirect(url_for('.email_branding', branding_id=branding_id))
form.name.data = email_branding['name']
form.text.data = email_branding['text']
form.colour.data = email_branding['colour']
return render_template(