% content_for :title, "Add a location to this scheme" %> <% content_for :before_content do %> <%= govuk_back_link( href: case params[:referrer] when "check_local_authority", "check_answers" scheme_location_check_answers_path(@scheme, @location, route: params[:route]) else scheme_location_postcode_path(@scheme, @location, route: params[:route], referrer: params[:referrer]) end, ) %> <% end %> <%= form_for(@location, method: :patch, url: scheme_location_local_authority_path(@scheme, @location, route: params[:route], referrer: params[:referrer])) do |f| %>