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' %> <%= link_to '[Mass mailing]', :action => 'mass_mailing' %> <% if GraderConfiguration.multicontests? %>
Multi-contest: <%= link_to '[Manage bulk users in contests]', :action => 'contest_management' %> View users in: <% @contests.each do |contest| %> <%= link_to "[#{contest.name}]", :action => 'contests', :id => contest.id %> <% end %> <%= link_to "[no contest]", :action => 'contests', :id => 'none' %> <% end %>
Total <%= @user_count %> users | <% if !@paginated %> Display all users. <%= link_to '[show in pages]', :action => 'list', :page => '1' %> <% else %> Display in pages. <%= link_to '[display all]', :action => 'list', :page => 'all' %> | <%= will_paginate @users, :container => false %> <% end %> <% for column in User.content_columns %> <% if !@hidden_columns.index(column.name) %> <% end %> <% end %> <% for user in @users %> "> <% for column in User.content_columns %> <% if !@hidden_columns.index(column.name) %> <% end %> <% end %> <% end %>
<%= column.human_name %>
<%=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 %>

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