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.
23 lines
1.0 KiB
23 lines
1.0 KiB
<% content_for :title, current_user == @user ? "Your account" : "#{@user.name.presence || @user.email}’s account" %> |
|
|
|
<div class="govuk-grid-row"> |
|
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %> |
|
<div class="govuk-grid-column-two-thirds-from-desktop"> |
|
<h1 class="govuk-heading-l"> |
|
<span class="govuk-caption-l"><%= @user.name %></span> |
|
Are you sure you want to deactivate this user? |
|
</h1> |
|
<p>Deactivating this user will mean they can no longer access this service to submit CORE data.</p> |
|
<p>Any logs this user has already submitted will not be affected.</p> |
|
<%= f.govuk_text_field :active, |
|
value: false, |
|
hidden: true %> |
|
|
|
<%= f.govuk_submit "I’m sure - deactivate this user" %> |
|
<p class="govuk-body"> |
|
<%= govuk_link_to("No - I’ve changed my mind", user_path(@user)) %> |
|
</p> |
|
</div> |
|
</div> |
|
<% end %> |
|
</div>
|
|
|