Convert radios on link-service-to-org page (basic)

This commit is contained in:
Tom Byers
2020-12-02 15:50:54 +00:00
parent eac4b97cc3
commit 1fea95fae4
3 changed files with 5 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
{% extends "withnav_template.html" %}
{% from "components/radios.html" import radios %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import sticky_page_footer %}
{% from "components/live-search.html" import live_search %}
@@ -18,14 +17,14 @@
back_link=url_for('.service_settings', service_id=current_service.id)
) }}
{{ live_search(
target_selector='.multiple-choice',
target_selector='.govuk-radios__item',
show=True, form=search_form,
label='Search by name',
autofocus=True
) }}
{% call form_wrapper() %}
{% if has_organisations %}
{{ radios(form.organisations) }}
{{ form.organisations }}
{{ sticky_page_footer('Save') }}
{% else %}
<p class="hint"> No organisations </p>