<% content_for :title, current_user == @user ? "Your account" : "#{@user.name.presence || @user.email}’s account" %>
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %>

<%= @user.name %> Are you sure you want to deactivate this user?

Deactivating this user will mean they can no longer access this service to submit CORE data.

Any logs this user has already submitted will not be affected.

<%= f.govuk_text_field :active, value: false, hidden: true %> <%= f.govuk_submit "I’m sure - deactivate this user" %>

<%= govuk_link_to("No - I’ve changed my mind", user_path(@user)) %>

<% end %>