@ -1,7 +1,7 @@
<% content_for :title, "Resend security code" %>
<% content_for :before_content do %>
<%= govuk_back_link(href: "javascript:history.back()") %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_with(url: send("resend_code_#{resource_name}_two_factor_authentication_path"), html: { method: :get }) do |f| %>
<% content_for :title, @page.header.presence || @page.questions.first.header.html_safe %>
<div data-controller="govukfrontend"></div>
@ -2,7 +2,6 @@
<%= govuk_back_link(
text: "Back",
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location, route: params[:route]) : scheme_location_mobility_standards_path(@scheme, @location, route: params[:route]),
) %>
@ -3,7 +3,6 @@
href: case params[:route]
when "locations"
scheme_locations_path(@scheme)
@ -4,7 +4,6 @@
href: "/schemes/#{@scheme.id}",
href: case params[:referrer]
when "check_local_authority"
scheme_location_check_answers_path(@scheme, @location, route: params[:route])
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location, route: params[:route]) : scheme_location_type_of_unit_path(@scheme, @location, route: params[:route]),
when "check_answers"
href: if params[:referrer] == "check_answers"
else
href: scheme_locations_path(@scheme),
href: scheme_location_path(@location.scheme, @location),
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location, route: params[:route]) : scheme_location_units_path(@scheme, @location, route: params[:route]),
href: params[:referrer] == "check_answers" ? scheme_location_check_answers_path(@scheme, @location, route: params[:route]) : scheme_location_name_path(@scheme, @location, route: params[:route]),
href: request.query_parameters["check_answers"] ? "/schemes/#{@scheme.id}/check-answers" : "/schemes/#{@scheme.id}/primary-client-group",
@ -1,10 +1,7 @@
<% content_for :title, "Create a new supported housing scheme" %>
href: :back,
<%= form_for(@scheme, method: :patch) do |f| %>
<% content_for :title, "Scheme details" %>
@ -6,10 +6,7 @@
href: "javascript:history.go(-1);",
<h1 class="govuk-heading-l">
@ -7,10 +7,7 @@
href: back_button_path,
<%= govuk_back_link(href: back_button_path) %>
href: request.query_parameters["check_answers"] ? "/schemes/#{@scheme.id}/check-answers" : "/schemes/#{@scheme.id}/confirm-secondary-client-group",
href: "/schemes",
href: request.query_parameters["check_answers"] ? "/schemes/#{@scheme.id}/check-answers" : "/schemes/#{@scheme.id}/secondary-client-group",
href: scheme_details_path(@scheme),