Sha256: bd00583a427be7b1f7a166872bae8c1b748a11787c4b33cc11f5c87cfbee0bef

Contents?: true

Size: 977 Bytes

Versions: 3

Compression:

Stored size: 977 Bytes

Contents

- require_password ||= false

.sub-header
  .button-bar.clearfix
    = render 'search'
    .admin-links
      = link_to 'all users', dust_users_path, :class => "border"
      = link_to 'delete user', @user, :confim => 'Are you sure?', :method => :delete if @user.id


.content-wrapper
  = form_for @user, :validate => true do |f|
    .item
      = f.label :username
      = f.text_field :username, :class => 'field'
      = f.label :email
      = f.text_field :email, :class => 'field'
      = f.label :password
      = f.password_field :password, validate: require_password, :class => 'field', value: nil
      = f.label :password_confirmation
      = f.password_field :password_confirmation, validate: require_password, :class => 'field'
    - if permitted_to? :manage, :users
      .item
        = f.label :role, "Select Role"
        = f.collection_select :role_id, Dust::Role.all(:order => 'name'), :id, :name, {:include_blank => true}
    .item
      = f.submit "Submit"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-cms-0.0.07 app/views/dust/users/_form.html.haml
dust-cms-0.0.06 app/views/dust/users/_form.html.haml
dust-cms-0.0.05 app/views/dust/users/_form.html.haml