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.
20 lines
963 B
20 lines
963 B
2 years ago
|
<% title = "Deactivate #{@scheme.service_name}" %>
|
||
2 years ago
|
<% content_for :title, title %>
|
||
2 years ago
|
<%= form_with model: @scheme, url: scheme_deactivate_path(@scheme), method: "patch", local: true do |f| %>
|
||
2 years ago
|
<% content_for :before_content do %>
|
||
|
<%= govuk_back_link(href: :back) %>
|
||
|
<% end %>
|
||
2 years ago
|
<h1 class="govuk-heading-l">
|
||
|
<span class="govuk-caption-l"><%= @scheme.service_name %></span>
|
||
2 years ago
|
This change will affect <%= @scheme.lettings_logs.count %> logs
|
||
2 years ago
|
</h1>
|
||
2 years ago
|
<%= govuk_warning_text text: I18n.t("warnings.scheme.deactivation.review_logs") %>
|
||
|
<%= f.hidden_field :confirm, value: true %>
|
||
2 years ago
|
<%= f.hidden_field :deactivation_date, value: @deactivation_date %>
|
||
|
<%= f.hidden_field :deactivation_date_type, value: @deactivation_date_type %>
|
||
2 years ago
|
<div class="govuk-button-group">
|
||
2 years ago
|
<%= f.govuk_submit "#{action.humanize} this scheme" %>
|
||
|
<%= govuk_button_link_to "Cancel", scheme_details_path(@scheme), html: { method: :get }, secondary: true %>
|
||
2 years ago
|
</div>
|
||
|
<% end %>
|