Merge pull request #2230 from alphagov/add-branding-name-to-ui

Show the 'name' of the email branding in the adding and editing screens
This commit is contained in:
Tom Byers
2018-08-14 16:05:56 +01:00
committed by GitHub
14 changed files with 48 additions and 73 deletions

View File

@@ -15,18 +15,20 @@ class EmailBrandingClient(NotifyAdminAPIClient):
def get_letter_email_branding(self):
return self.get(url='/dvla_organisations')
def create_email_branding(self, logo, name, colour):
def create_email_branding(self, logo, name, text, colour):
data = {
"logo": logo,
"name": name,
"text": text,
"colour": colour
}
return self.post(url="/email-branding", data=data)
def update_email_branding(self, branding_id, logo, name, colour):
def update_email_branding(self, branding_id, logo, name, text, colour):
data = {
"logo": logo,
"name": name,
"text": text,
"colour": colour
}
return self.post(url="/email-branding/{}".format(branding_id), data=data)