<% title = @scheme.service_name %> <% content_for :title, title %> <% content_for :before_content do %> <%= govuk_back_link( href: "/schemes", ) %> <% end %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> <% if FeatureToggle.location_toggle_enabled? %>
<% end %> <%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %>

Scheme

<%= govuk_summary_list do |summary_list| %> <% display_scheme_attributes(@scheme, current_user).each do |attr| %> <%= summary_list.row do |row| %> <% row.key { attr[:name] } %> <% row.value { details_html(attr) } %> <% row.action(text: "Change", href: scheme_edit_name_path(scheme_id: @scheme.id)) if attr[:edit] && user_can_edit_scheme?(current_user, @scheme) %> <% end %> <% end %> <% end %> <% if FeatureToggle.location_toggle_enabled? %>
<% end %> <% if FeatureToggle.scheme_toggle_enabled? && user_can_edit_scheme?(current_user, @scheme) %> <%= toggle_scheme_link(@scheme) %> <% end %>