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

Version Path
beef-admin_area-0.3.9 app/views/admin/users/show.html.erb
beef-admin_area-0.3.8 app/views/admin/users/show.html.erb
beef-admin_area-0.3.7 app/views/admin/users/show.html.erb
beef-admin_area-0.3.6 app/views/admin/users/show.html.erb
beef-admin_area-0.3.4 app/views/admin/users/show.html.erb
beef-admin_area-0.3.3 app/views/admin/users/show.html.erb
beef-admin_area-0.3.2 app/views/admin/users/show.html.erb
beef-admin_area-0.3.0 app/views/admin/users/show.html.erb
beef-admin_area-0.2.6 app/views/admin/users/show.html.erb
beef-admin_area-0.2.5 app/views/admin/users/show.html.erb
beef-admin_area-0.2.4 app/views/admin/users/show.html.erb
beef-admin_area-0.2.3 app/views/admin/users/show.html.erb
beef-admin_area-0.2.2 app/views/admin/users/show.html.erb
beef-admin_area-0.2.1 app/views/admin/users/show.html.erb
beef-admin_area-0.2.0 app/views/admin/users/show.html.erb
beef-admin_area-0.1.9 app/views/admin/users/show.html.erb