Select a branding with a link, not form

Selecting a branding just takes you to a new page, it doesn’t change
any state.

Links are generally the way you go from one page to another on the web.
This commit is contained in:
Chris Hill-Scott
2018-08-23 09:14:01 +01:00
parent 1e28fe4ffd
commit 9b9acfa291
4 changed files with 22 additions and 42 deletions

View File

@@ -713,20 +713,6 @@ class ServicePreviewBranding(StripWhitespaceForm):
branding_style = HiddenField('branding_style')
class ServiceSelectEmailBranding(StripWhitespaceForm):
def __init__(self, email_brandings=[], *args, **kwargs):
self.email_branding.choices = email_brandings
super(ServiceSelectEmailBranding, self).__init__(*args, **kwargs)
email_branding = RadioField(
'Email branding',
validators=[
DataRequired()
]
)
class ServiceUpdateEmailBranding(StripWhitespaceForm):
name = StringField('Name of brand')