|
|
|
@ -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 %> |
|
|
|
|