Convert radios on data retention page (basic)

This commit is contained in:
Tom Byers
2020-06-26 21:17:38 +01:00
parent b1d65f33c7
commit 25b89dd30a
2 changed files with 3 additions and 4 deletions

View File

@@ -2097,14 +2097,14 @@ class BrandingOptions(StripWhitespaceForm):
class ServiceDataRetentionForm(StripWhitespaceForm):
notification_type = RadioField(
notification_type = GovukRadiosField(
'What notification type?',
choices=[
('email', 'Email'),
('sms', 'SMS'),
('letter', 'Letter'),
],
validators=[DataRequired()],
thing='notification type',
)
days_of_retention = GovukIntegerField(
label="Days of retention",

View File

@@ -2,7 +2,6 @@
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% from "components/radios.html" import radios %}
{% block service_page_title %}
Data retention
@@ -16,7 +15,7 @@
) }}
{% call form_wrapper() %}
{{ radios(form.notification_type) }}
{{ form.notification_type }}
{{ form.days_of_retention }}
{{ page_footer('Add') }}
{% endcall %}