You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
<% title = @scheme.service_name %> |
|
<% content_for :title, title %> |
|
|
|
<% content_for :before_content do %> |
|
<%= govuk_back_link( |
|
text: "Back", |
|
href: "/schemes", |
|
) %> |
|
<% end %> |
|
|
|
<%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> |
|
|
|
<% if FeatureToggle.location_toggle_enabled? %> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-two-thirds-from-desktop"> |
|
<% end %> |
|
<%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %> |
|
|
|
<h2 class="govuk-visually-hidden">Scheme</h2> |
|
|
|
<%= 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] %> |
|
<% end %> |
|
<% end %> |
|
<% end %> |
|
|
|
<% if FeatureToggle.location_toggle_enabled? %> |
|
</div> |
|
</div> |
|
<% end %> |
|
|
|
<% if FeatureToggle.scheme_toggle_enabled? %> |
|
<% if @scheme.active? || @scheme.reactivating_soon? %> |
|
<%= govuk_button_link_to "Deactivate this scheme", scheme_new_deactivation_path(@scheme), warning: true %> |
|
<% else %> |
|
<%= govuk_button_link_to "Reactivate this scheme", scheme_new_reactivation_path(@scheme) %> |
|
<% end %> |
|
<% end %>
|
|
|