Convert radios on set email branding page

Changes SetEmailBranding.branding_style to
GovukRadiosFieldWithNoneOption.
This commit is contained in:
Tom Byers
2020-06-26 22:33:09 +01:00
parent d911c1a707
commit e8a74b7ed1
2 changed files with 2 additions and 3 deletions

View File

@@ -1729,7 +1729,7 @@ class ServiceSwitchChannelForm(ServiceOnOffSettingForm):
class SetEmailBranding(StripWhitespaceForm):
branding_style = RadioFieldWithNoneOption(
branding_style = GovukRadiosFieldWithNoneOption(
'Branding style',
thing='a branding style',
)

View File

@@ -1,5 +1,4 @@
{% extends "org_template.html" %}
{% from "components/radios.html" import radios %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/page-header.html" import page_header %}
{% from "components/live-search.html" import live_search %}
@@ -31,7 +30,7 @@
label='Search branding styles by name',
autofocus=True
) }}
{{ radios(form.branding_style) }}
{{ form.branding_style }}
</div>
</div>
<div class="js-stick-at-bottom-when-scrolling">