Sha256: dbf2d115b04c1ce7f255ed535fee2110b53bc3edad9688b225fc82b48d26cbcb

Contents?: true

Size: 1.21 KB

Versions: 13

Compression:

Stored size: 1.21 KB

Contents

= form_for(@cms_fortress_user, :html => {:class => 'form-horizontal'}) do |f| 
  - if @cms_fortress_user.errors.any?
    #error_explanation
      %h2= "#{pluralize(@cms_fortress_user.errors.count, "error")} prohibited this user from being saved:"
      %ul
        - @cms_fortress_user.errors.full_messages.each do |msg|
          %li= msg
  .control-group
    = f.label :last_name, :class => 'control-label'
    .controls
      = f.text_field :last_name
  .control-group
    = f.label :first_name, :class => 'control-label'
    .controls
      = f.text_field :first_name
  .control-group
    = f.label :email, :class => 'control-label'
    .controls
      = f.text_field :email
  .control-group
    = f.label :role_id, :class => 'control-label'
    .controls
      = f.select :role_id, Cms::Fortress::Role.all.collect {|role| [role.name, role.id]}
  .control-group
    = f.label :password, :class => 'control-label'
    .controls
      = f.password_field :password
  .control-group
    = f.label :password_confirmation, :class => 'control-label'
    .controls
      = f.password_field :password_confirmation
  .form-actions
    = f.submit 'Save', :class => 'btn btn-primary'
    = link_to 'Cancel', cms_fortress_users_path, :class => 'btn'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cms-fortress-1.1.8 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.7 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.6 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.5 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.4 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.3 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.2 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.1 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.1.0 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.0.12 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.0.9 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.0.8 app/views/cms/fortress/users/_form.html.haml
cms-fortress-1.0.7 app/views/cms/fortress/users/_form.html.haml