You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.3 KiB
33 lines
1.3 KiB
<% content_for :title, "Does this scheme provide for another client group?" %> |
|
|
|
<% content_for :before_content do %> |
|
<%= govuk_back_link( |
|
href: request.query_parameters["check_answers"] ? "check-answers" : "primary-client-group", |
|
) %> |
|
<% end %> |
|
|
|
<%= render partial: "organisations/headings", locals: { main: "Does this scheme provide for another client group?", sub: @scheme.service_name } %> |
|
<%= govuk_inset_text(text: "Only update a scheme if you’re fixing an error. If the scheme is changing, create a new scheme.") if @scheme.confirmed? %> |
|
|
|
<%= form_for(@scheme, method: :patch) do |f| %> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds"> |
|
<%= f.govuk_error_summary %> |
|
|
|
<% selection = [OpenStruct.new(id: "Yes", name: "Yes"), OpenStruct.new(id: "No", name: "No")] %> |
|
<%= f.govuk_collection_radio_buttons :has_other_client_group, |
|
selection, |
|
:id, |
|
:name, |
|
legend: nil %> |
|
|
|
<%= f.hidden_field :page, value: "confirm-secondary" %> |
|
<% if request.query_parameters["check_answers"] == "true" %> |
|
<%= f.hidden_field :check_answers, value: "true" %> |
|
<%= f.govuk_submit "Save changes" %> |
|
<% else %> |
|
<%= f.govuk_submit "Save and continue" %> |
|
<% end %> |
|
</div> |
|
</div> |
|
<% end %>
|
|
|