<% content_for :title, "Add a location to this scheme" %> <% content_for :before_content do %> <%= govuk_back_link( text: "Back", href: "/schemes/#{@scheme.id}/support", ) %> <% end %> <%= form_for(@location, method: :patch, url: scheme_location_type_of_unit_path(@scheme, @location)) do |f| %>
<%= f.govuk_error_summary %> <%= render partial: "organisations/headings", locals: { main: I18n.t("questions.location.units"), sub: "Add a location to #{@scheme.service_name}" } %> <%= f.govuk_number_field :units, label: nil, width: 2, hint: { text: I18n.t("hints.location.units") }, autofocus: true %>
<%= f.govuk_submit "Continue" %> <%= govuk_link_to "Cancel", new_scheme_location_path(@scheme) %>
<% end %>