diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb index 9ba609424..507c4c68a 100644 --- a/app/controllers/locations_controller.rb +++ b/app/controllers/locations_controller.rb @@ -3,6 +3,7 @@ class LocationsController < ApplicationController before_action :authenticate_scope! def new + @scheme = Scheme.find(12) @location = Location.new end diff --git a/app/views/locations/new.html.erb b/app/views/locations/new.html.erb index 5781dfffb..fd7385f0c 100644 --- a/app/views/locations/new.html.erb +++ b/app/views/locations/new.html.erb @@ -7,14 +7,22 @@ ) %> <% end %> +<%= render partial: "organisations/headings", locals: { main: "Add a location to this scheme", sub: @scheme.service_name } %> + <%= form_for(@location, method: :post, url: location_create_scheme_path) do |f| %>