Sha256: bc052dd17fcf930c944c07fcf207652addacee4dc2d6ac08f88ae065d47075f7
Contents?: true
Size: 834 Bytes
Versions: 11
Compression:
Stored size: 834 Bytes
Contents
= simple_form_for(@user, html: {multipart: true, novalidate: true}) do |f| header.content-header.js-content-header - if params[:action] === 'settings' h1 Your Settings - else = form_header @user .content-header-buttons - cancel_path = params[:action] == 'settings' ? root_path : users_path a.button#js-header-cancel href=cancel_path Cancel = f.submit 'Save' main.content = fae_input f, :first_name = fae_input f, :last_name = fae_input f, :email = fae_input f, :password, helper_text: 'To update your password, fill out the fields below. Otherwise leave blank. Passwords must contain at least 8 characters.' = fae_input f, :password_confirmation - if current_user.admin? || current_user.super_admin? = fae_association f, :role, collection: @role_collection
Version data entries
11 entries across 11 versions & 2 rubygems