mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 05:10:45 -04:00
Convert radios on add nhs local org page (basic)
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user