<% content_for :title, "Add a location to this scheme" %> <% content_for :before_content do %> <%= govuk_back_link( text: "Back", href: scheme_location_postcode_path(@scheme, @location), ) %> <% end %> <%= form_for(@location, method: :patch, url: scheme_location_name_path(@scheme, @location)) do |f| %>
<%= f.govuk_error_summary %> <%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.name"), sub: "Add a location to #{@scheme.service_name}" } %> <%= f.govuk_text_field :name, label: nil, hint: { text: I18n.t("hints.location.name") } %>
<%= f.govuk_submit "Continue" %> <%= govuk_button_link_to "Cancel", scheme_locations_path(@scheme), secondary: true %>
<% end %>