diff --git a/app/main/forms.py b/app/main/forms.py index c28997205..44ab8bd3e 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -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", diff --git a/app/templates/views/service-settings/data-retention/add.html b/app/templates/views/service-settings/data-retention/add.html index d78a434cb..bc33f79ec 100644 --- a/app/templates/views/service-settings/data-retention/add.html +++ b/app/templates/views/service-settings/data-retention/add.html @@ -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 %}