mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-11 07:13:47 -04:00
Convert radios on data retention page (basic)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user