Sha256: b5601fad895a9eed0980ba35d1a0932e8b1e4a48c6d0403dcff617c2ab61ea32
Contents?: true
Size: 1.22 KB
Versions: 8
Compression:
Stored size: 1.22 KB
Contents
<% 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 %> <h2>Preventing access</h2> <p> Unchecking the <cite>This account is activated</cite> box will effectively disable logins. </p> <% end %> <% end %> <%= form_for([:admin, @user], html: { multipart: true }, builder: PagesCore::Admin::FormBuilder) do |f| %> <h2>Account details</h2> <%= f.labelled_text_field :name %> <%= f.labelled_text_field :email %> <h2>Profile picture</h2> <%= f.image_uploader :image, alternative: @user.name %> <% if policy(@user).change_password? %> <h2>Password</h2> <%= f.labelled_password_field :password, 'Change password' %> <%= f.labelled_password_field :confirm_password, 'Confirm password' %> <p> Leave the password blank if you do not wish to change the password. </p> <% end %> <%= render partial: "access_control", locals: { user: @user, f: f } %> <p> <button type="submit">Save</button> </p> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems