mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
Convert radios on research consent (basic)
This commit is contained in:
@@ -1569,13 +1569,16 @@ class EstimateUsageForm(StripWhitespaceForm):
|
|||||||
things='letters',
|
things='letters',
|
||||||
format_error_suffix='you expect to send',
|
format_error_suffix='you expect to send',
|
||||||
)
|
)
|
||||||
consent_to_research = RadioField(
|
consent_to_research = GovukRadiosField(
|
||||||
'Can we contact you when we’re doing user research?',
|
'Can we contact you when we’re doing user research?',
|
||||||
choices=[
|
choices=[
|
||||||
('yes', 'Yes'),
|
('yes', 'Yes'),
|
||||||
('no', 'No'),
|
('no', 'No'),
|
||||||
],
|
],
|
||||||
thing='yes or no',
|
thing='yes or no',
|
||||||
|
param_extensions={
|
||||||
|
'hint': {'text': 'You do not have to take part and you can unsubscribe at any time'}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
at_least_one_volume_filled = True
|
at_least_one_volume_filled = True
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
{% from "components/form.html" import form_wrapper %}
|
{% from "components/form.html" import form_wrapper %}
|
||||||
{% from "components/page-header.html" import page_header %}
|
{% from "components/page-header.html" import page_header %}
|
||||||
{% from "components/page-footer.html" import page_footer %}
|
{% from "components/page-footer.html" import page_footer %}
|
||||||
{% from "components/radios.html" import radios %}
|
|
||||||
|
|
||||||
{% block service_page_title %}
|
{% block service_page_title %}
|
||||||
Tell us how many messages you expect to send
|
Tell us how many messages you expect to send
|
||||||
@@ -39,7 +38,7 @@
|
|||||||
"hint": {"text": "For example, 50,000"},
|
"hint": {"text": "For example, 50,000"},
|
||||||
}) }}
|
}) }}
|
||||||
</div>
|
</div>
|
||||||
{{ radios(form.consent_to_research, hint='You do not have to take part and you can unsubscribe at any time') }}
|
{{ form.consent_to_research }}
|
||||||
{{ page_footer('Continue') }}
|
{{ page_footer('Continue') }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user