Sha256: 5cdb826c0d1c40c5f4c56337ad00d693c1d052fad4eb2c85fb89006b4e4ec7ab
Contents?: true
Size: 953 Bytes
Versions: 16
Compression:
Stored size: 953 Bytes
Contents
<h1><%= @user.new_record? ? 'New' : 'Editing' %> User</h1> <% form_for([:admin, @user], :html => {:multipart => true} ) do |f| %> <%= f.error_messages %> <p> <%= f.label :name %><br/> <%= f.text_field :name %> </p> <p> <%= f.label :email %><br/> <%= f.text_field :email %> </p> <p> <%= f.label :password %><br/> <%= f.password_field :password, :id => "password", :onKeyUp => "updateStrength(this.value)" %> <div id="password-meter"><strong>Strength</strong><div id = "psContainer"><div id = "psStrength"></div></div></div> </p> <p> <%= f.label :password_confirmation %><br/> <%= f.password_field :password_confirmation %> </p> <p> <%= f.label :role %><br/> <%= f.select :role, User::ROLES.map{|r| r.to_s } %> </p> <p> <%= f.submit @user.new_record? ? 'Create' : 'Update', :disable_with => 'Submitting...' %> or <%= link_to 'Cancel', admin_users_path %> </p> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems