% content_for :page_title, "Editing user: #{@user.name}" %> <% content_for :page_description do %> You are editing <%= link_to((@user == current_user ? "your own profile" : "#{@user.name}"), [:admin, @user]) %> <% end %> <% content_for :sidebar do %> <% if @user != current_user %>
Unchecking the This account is activated box will effectively disable logins.
<% end %> <% end %> <%= form_for([:admin, @user], html: { multipart: true }, builder: PagesCore::Admin::FormBuilder) do |f| %>Leave the password blank if you do not wish to change the password.
<% end %> <%= render partial: "access_control", locals: { user: @user, f: f } %><% end %>