Listing users

Quick add <% form_tag :action => 'create' do %>
<%= text_field 'user', 'login', :size => 10 %> <%= text_field 'user', 'full_name', :size => 30 %> <%= password_field 'user', 'password', :size => 10 %> <%= password_field 'user', 'password_confirmation', :size => 10 %> <%= text_field 'user', 'email', :size => 15 %> <%= submit_tag "Create" %>
<% end %>
Import from site management <% form_tag({:action => 'import'}, :multipart => true) do %> File: <%= file_field_tag 'file' %> <%= submit_tag 'Import' %> <% end %>
What else: <%= link_to '[New user]', :action => 'new' %> <%= link_to '[New list of users]', :action => 'new_list' %> <%= link_to '[View administrators]', :action => 'admin' %> <%= link_to '[Random passwords]', :action => 'random_all_passwords' %> <%= link_to '[View active users]', :action => 'active' %> <% if Configuration.multicontests? %> <%= link_to '[Manage bulk users in contests]', :action => 'contest_management' %> <% end %>
<% for column in User.content_columns %> <% if !@hidden_columns.index(column.name) %> <% end %> <% end %> <% if Configuration.multicontests? %> <% end %> <% for user in @users %> "> <% for column in User.content_columns %> <% if !@hidden_columns.index(column.name) %> <% end %> <% end %> <% if Configuration.multicontests? %> <% end %> <% end %>
<%= column.human_name %> Contests Other enabled contests
<%=h user.send(column.name) %><%= link_to 'Show', :action => 'show', :id => user %> <%= link_to 'Edit', :action => 'edit', :id => user %> <%= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post %> <% user.contests.each do |contest| %> <%= contest.name %> [<%= link_to 'x', :action => 'remove_from_contest', :id => user.id, :contest_id => contest.id %>] <% end %> <% @contests.each do |contest| %> <% if not user.contests.all.find {|c| c.id==contest.id } %> <%= contest.name %> [<%= link_to '+', :action => 'add_to_contest', :id => user.id, :contest_id => contest.id %>] <% end %> <% end %>

<%= link_to 'New user', :action => 'new' %> <%= link_to 'New list of users', :action => 'new_list' %>