Convert radios on add nhs local org page (basic)

This commit is contained in:
Tom Byers
2020-06-25 16:37:07 +01:00
parent 52929d835d
commit 6aaa4d906b
3 changed files with 5 additions and 6 deletions

View File

@@ -1157,7 +1157,7 @@ class AddNHSLocalOrganisationForm(StripWhitespaceForm):
super().__init__(*args, **kwargs)
self.organisations.choices = organisation_choices
organisations = RadioField(
organisations = GovukRadiosField(
'Which NHS Trust or Clinical Commissioning Group do you work for?',
thing='an NHS Trust or Clinical Commissioning Group'
)

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/live-search.html" import live_search %}
{% from "components/form.html" import form_wrapper %}
@@ -21,13 +20,13 @@
{{ form.organisations.label.text }}
</p>
{{ live_search(
target_selector='.multiple-choice',
target_selector='.govuk-radios__item',
show=True,
form=search_form,
label='Search by name',
autofocus=True)
}}
{{ radios(form.organisations, hide_legend=True) }}
{{ form.organisations }}
{{ sticky_page_footer('Continue') }}
{% endcall %}
{% endblock %}