Convert radios on set inbound page (basic)

This commit is contained in:
Tom Byers
2020-06-30 15:13:42 +01:00
parent d0b8610cd8
commit 0f269a1259
2 changed files with 4 additions and 5 deletions

View File

@@ -1916,7 +1916,7 @@ class ServiceInboundNumberForm(StripWhitespaceForm):
super().__init__(*args, **kwargs)
self.inbound_number.choices = kwargs['inbound_number_choices']
inbound_number = RadioField(
inbound_number = GovukRadiosField(
"Select your inbound number",
thing='an inbound number',
)

View File

@@ -1,7 +1,6 @@
{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import sticky_page_footer %}
{% from "components/radios.html" import radios%}
{% from "components/form.html" import form_wrapper %}
{% block service_page_title %}
@@ -19,9 +18,9 @@
<p class="govuk-body"> No available inbound numbers </p>
{% else %}
{% call form_wrapper() %}
{{ radios(form.inbound_number) }}
{{ sticky_page_footer('Save') }}
{% endcall %}
{{ form.inbound_number }}
{{ sticky_page_footer('Save') }}
{% endcall %}
{% endif %}
{% endblock %}