Browse Source

update paths

pull/976/head
Kat 3 years ago
parent
commit
d8f37e10a5
  1. 2
      app/views/locations/edit_name.html.erb
  2. 6
      app/views/locations/show.html.erb

2
app/views/locations/edit_name.html.erb

@ -3,7 +3,7 @@
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: "/schemes/#{@scheme.id}/locations/#{@location.id}",
href: scheme_location_path(@scheme, @location),
) %>
<% end %>

6
app/views/locations/show.html.erb

@ -4,7 +4,7 @@
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: locations_path(@scheme),
href: scheme_locations_path(@scheme),
) %>
<% end %>
@ -17,12 +17,12 @@
<%= summary_list.row do |row| %>
<% row.key { attr[:name] } %>
<% row.value { attr[:name].eql?("Status") ? status_tag(attr[:value]) : details_html(attr) } %>
<% row.action(text: "Change", href: location_edit_name_path(@scheme, location_id: @location)) if attr[:edit] %>
<% row.action(text: "Change", href: scheme_location_edit_name_path(scheme_id: @scheme.id, location_id: @location.id)) if attr[:edit] %>
<% end %>
<% end %>
<% end %>
</div>
</div>
<% if FeatureToggle.location_toggle_enabled? %>
<%= govuk_button_link_to "Deactivate this location", location_deactivate_path(location_id: @location.id, id: @scheme.id), warning: true %>
<%= govuk_button_link_to "Deactivate this location", scheme_location_deactivate_path(scheme_id: @scheme.id, location_id: @location.id), warning: true %>
<% end %>

Loading…
Cancel
Save