mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
New columns for email branding
Added banner_colour, single_id_colour and domain to email branding view. Now able to set the fields. However, the new fields are not being used yet.
This commit is contained in:
@@ -80,7 +80,10 @@ def update_email_branding(branding_id, logo=None):
|
||||
logo=logo,
|
||||
name=form.name.data,
|
||||
text=form.text.data,
|
||||
colour=form.colour.data
|
||||
colour=form.colour.data,
|
||||
banner_colour=form.banner_colour.data,
|
||||
single_id_colour=form.single_id_colour.data,
|
||||
domain=form.domain.data,
|
||||
)
|
||||
|
||||
return redirect(url_for('.email_branding', branding_id=branding_id))
|
||||
@@ -88,6 +91,9 @@ def update_email_branding(branding_id, logo=None):
|
||||
form.name.data = email_branding['name']
|
||||
form.text.data = email_branding['text']
|
||||
form.colour.data = email_branding['colour']
|
||||
form.banner_colour.data = email_branding['banner_colour']
|
||||
form.single_id_colour.data = email_branding['single_id_colour']
|
||||
form.domain.data = email_branding['domain']
|
||||
|
||||
return render_template(
|
||||
'views/email-branding/manage-branding.html',
|
||||
@@ -128,7 +134,10 @@ def create_email_branding(logo=None):
|
||||
logo=logo,
|
||||
name=form.name.data,
|
||||
text=form.text.data,
|
||||
colour=form.colour.data
|
||||
colour=form.colour.data,
|
||||
banner_colour=form.banner_colour.data,
|
||||
single_id_colour=form.single_id_colour.data,
|
||||
domain=form.domain.data
|
||||
)
|
||||
|
||||
return redirect(url_for('.email_branding'))
|
||||
|
||||
Reference in New Issue
Block a user