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.
18 lines
922 B
18 lines
922 B
2 years ago
|
<%= form_with model: @location, url: scheme_location_deactivate_path(@location), method: "patch", local: true do |f| %>
|
||
|
<% content_for :before_content do %>
|
||
|
<%= govuk_back_link(href: :back) %>
|
||
|
<% end %>
|
||
|
<h1 class="govuk-heading-l">
|
||
|
<span class="govuk-caption-l"><%= @location.postcode %></span>
|
||
2 years ago
|
This change will affect <%= @location.lettings_logs.count %> logs
|
||
2 years ago
|
</h1>
|
||
|
<%= govuk_warning_text text: I18n.t("warnings.location.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 %>
|
||
|
<div class="govuk-button-group">
|
||
2 years ago
|
<%= f.govuk_submit "Deactivate this location" %>
|
||
2 years ago
|
<%= govuk_button_link_to "Cancel", scheme_location_path(@scheme, @location), html: { method: :get }, secondary: true %>
|
||
2 years ago
|
</div>
|
||
|
<% end %>
|