Sha256: 7661e52b8762e62d6a2c3dc2b52f768464e79de600d1469dc1c73051aab89da3

Contents?: true

Size: 1.88 KB

Versions: 5

Compression:

Stored size: 1.88 KB

Contents

<h1><%= @user.new_record? ? 'New' : 'Editing' %> User</h1>

<%= form_for([:admin, @user], :html => { :multipart => true}) do |f| %>
  <%= f.error_messages %>

  <p>
    <span class="tooltip" title="Enter the name of this user">&nbsp;</span>
    <%= f.label :name %><br/>
    <span class="input-wrap"><%= f.text_field :name  %></span>
  </p>

  <p>
    <span class="tooltip" title="Enter the email address the user will use to login">&nbsp;</span>
    <%= f.label :email %><br/>
    <span class="input-wrap"><%= f.text_field :email %></span>
  </p>
  
  <p>
    <span class="tooltip" title="Select an image to use as this user's icon">&nbsp;</span>
    <%= f.label :avatar %><br/>
    <span class="input-wrap"><%= f.file_field :avatar %></span>
  </p>

  <p>
    <span class="tooltip" title="Enter some text about this user">&nbsp;</span>
    <%= f.label :bio %><br/>
    <span class="input-wrap"><%= f.text_area :bio %></span>
  </p>

  <p>
    <span class="tooltip" title="Enter the a password for the user">&nbsp;</span>
    <%= f.label :password %><br/>
    <span class="input-wrap"><%= f.password_field :password, :onKeyUp => "updateStrength(this.value)"  %></span>
  </p>

  <p>
    <span class="tooltip" title="Enter the password again to confirm it is correct">&nbsp;</span>
    <%= f.label :password_confirmation %><br/>
    <span class="input-wrap"><%= f.password_field :password_confirmation %></span>
  </p>

  <p>
    <span class="tooltip" title="Add a user to a group, this will determine what tasks they can perform when managing content.">&nbsp;</span>
    <%= f.label :group_list, "Permission Groups" %><br/>
    <span class="input-wrap"><%= f.text_field :group_list %></span>
  </p>

  <p class="fixed-form">
    <%= f.submit @user.new_record? ? 'Create' : 'Update', :disable_with => 'Submitting...', :class => 'update' %>
    <%= link_to 'Cancel', admin_users_path, :class => 'cancel' %>
  </p>
<% end %>


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
noodall-devise-0.2.1 app/views/admin/users/show.html.erb
noodall-devise-0.1.8 app/views/admin/users/show.html.erb
noodall-devise-0.1.7 app/views/admin/users/show.html.erb
noodall-devise-0.1.6 app/views/admin/users/show.html.erb
noodall-devise-0.1.5 app/views/admin/users/show.html.erb