Sha256: b69404f280680878e5140b147609d0967f7f19dba0768360047032953532f85b

Contents?: true

Size: 1.88 KB

Versions: 16

Compression:

Stored size: 1.88 KB

Contents

.content
  .inner     
    -if form_for == "login"
      %div.group
        .text_field= text_field :id => "user_name", :name => "name", :label => "Username: ", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @user.name
      %br
      
      %div.group
        .text_field= password_field :id=> "password", :name => "password", :label=>"Password: ", :class => "password_field"
      %br
      =link_to("Or, log in with OpenID if you have one associated with an existing user account.", url(:openid_consumer))
      %br 
    
    - if form_for == "edit"
      %div.group.form
        %label.label New Password
        = password_field :id=>"user_new_password", :name => "new_password", :class =>"password_field"
        %span.description New password for the User. Keep blank if you do not want to change password. 

      %div.group.form
        %label.label Confirm New Password
        = password_field :id=>"user_confirm_new_password", :name => "confirm_new_password", :class =>"password_field"
        %span.description Confirm new password for the User. Keep blank if you do not want to change password.

      - if session[:level] == :admin && edit_admin
        %div.group.form
          %label.label Admin
          = text_field :id => "user_admin", :name => "admin", :class => "text_field", :value => @user.admin
          %span.description Whether or not the User is an admin. 
      
      %div.group.form
        %label.label OpenID Association
        = text_field :id => "openid", :name => "openid", :class => "text_field", :value => @user.openid
        %span.description Associate an OpenID with the user account, leave blank if you do not want to associate one.   
      
    = form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
      %div.group
        .actions-bar
          .actions= submit submit_name, :id => submit_id, :class => 'button'

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
chef-server-webui-0.9.6 app/views/users/_form.html.haml
chef-server-webui-0.9.4 app/views/users/_form.html.haml
chef-server-webui-0.9.2 app/views/users/_form.html.haml
chef-server-webui-0.9.0 app/views/users/_form.html.haml
chef-server-webui-0.9.0.rc02 app/views/users/_form.html.haml
chef-server-webui-0.9.0.rc01 app/views/users/_form.html.haml
chef-server-webui-0.9.0.b02 app/views/users/_form.html.haml
chef-server-webui-0.9.0.b01 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a92 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a91 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a90 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a10 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a8 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a6 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a4 app/views/users/_form.html.haml
chef-server-webui-0.9.0.a3 app/views/users/_form.html.haml