Add platform admin setting for letter branding

Does two main things:
- defines what ‘brands’ we support, in terms of the ID that DVLA use
- adds a form to choose which branding a service uses (currently
  platform admin only, like email branding)

By doing this we will be able to (with some more work) preview and send
letters with a variety of different branding.

Story: https://www.pivotaltracker.com/story/show/143506905
This commit is contained in:
Chris Hill-Scott
2017-04-19 16:11:28 +01:00
parent 38fbc3c47d
commit 61470391bf
7 changed files with 149 additions and 11 deletions

View File

@@ -538,6 +538,20 @@ class ServiceBrandingOrg(Form):
)
class LetterBranding(Form):
def __init__(self, choices=[], *args, **kwargs):
super().__init__(*args, **kwargs)
self.dvla_org_id.choices = choices
dvla_org_id = RadioField(
'Which logo should this services letter have?',
validators=[
DataRequired()
]
)
class Whitelist(Form):
def populate(self, email_addresses, phone_numbers):