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

Version Path
fae-railsz-2.1.0 app/views/fae/users/_form.html.slim
fae-rails-2.0.0 app/views/fae/users/_form.html.slim
fae-rails-1.7.1 app/views/fae/users/_form.html.slim
fae-rails-1.7.0 app/views/fae/users/_form.html.slim
fae-rails-1.6.0 app/views/fae/users/_form.html.slim
fae-rails-1.5.1 app/views/fae/users/_form.html.slim
fae-rails-1.5.0 app/views/fae/users/_form.html.slim
fae-rails-1.4.1 app/views/fae/users/_form.html.slim
fae-rails-1.4.0 app/views/fae/users/_form.html.slim
fae-rails-1.3.1 app/views/fae/users/_form.html.slim
fae-rails-1.3.0 app/views/fae/users/_form.html.slim