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