Sha256: c099a2813b82706a254c0051f56b6f71f4316cfedc5f92d2e655e69284aef627

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

= simple_form_for(@user, html: {multipart: true, novalidate: true}) do |f|
  section.main_content-header
    .main_content-header-wrapper
      nav.main_content-breadcrumbs
        ul.breadcrumbs
          - if current_user.super_admin?
            li: a href=users_path All Users
      - if params[:action] === 'settings'
        h1 Your Settings
      - else
        = form_header @user
      .main_content-header-save
        - cancel_path = params[:action] == 'settings' ? root_path : users_path
        a#main_content-header-save-cancel href=cancel_path Cancel
        = f.submit "Save Settings"

  .main_content-section
    section.main_content-section
      .main_content-section-area
        = 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

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.2.5 app/views/fae/users/_form.html.slim
fae-rails-1.2.4 app/views/fae/users/_form.html.slim
fae-rails-1.2.3 app/views/fae/users/_form.html.slim
fae-rails-1.2.2 app/views/fae/users/_form.html.slim