Show More
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@359 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/user_admin/list.rhtml | 57 lines | 1.7 KiB | text/html+ruby | RhtmlLexer |
<h1>Listing users</h1>
<div class="submitbox">
<b>Quick add</b>
<% form_tag :action => 'create' do %>
<table border="0">
<tr>
<td><label for="user_login">Login</label></td>
<td><label for="user_full_name">Full name</label></td>
<td><label for="user_password">Password</label></td>
<td><label for="user_password_confirmation">Confirm</label></td>
<td><label for="user_email">Email</label></td>
</tr>
<tr>
<td><%= text_field 'user', 'login', :size => 10 %></td>
<td><%= text_field 'user', 'full_name', :size => 30 %></td>
<td><%= password_field 'user', 'password', :size => 10 %></td>
<td><%= password_field 'user', 'password_confirmation', :size => 10 %></td>
<td><%= text_field 'user', 'email', :size => 15 %></td>
<td><%= submit_tag "Create" %></td>
</tr></table>
<% end %>
<br/>
<b>Import from site management</b>
<% form_tag({:action => 'import'}, :multipart => true) do %>
File: <%= file_field_tag 'file' %> <%= submit_tag 'Import' %>
<% end %>
</div>
<table>
<tr>
<% for column in User.content_columns %>
<% if !@hidden_columns.index(column.name) %>
<th><%= column.human_name %></th>
<% end %>
<% end %>
</tr>
<% for user in @users %>
<tr>
<% for column in User.content_columns %>
<% if !@hidden_columns.index(column.name) %>
<td><%=h user.send(column.name) %></td>
<% end %>
<% end %>
<td><%= link_to 'Show', :action => 'show', :id => user %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => user %></td>
<td><%= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New user', :action => 'new' %>
<%= link_to 'New list of users', :action => 'new_list' %>