Show More
Commit Description:
removed caching on Configuration...
Commit Description:
removed caching on Configuration
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@285 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/list.rhtml
| 57 lines
| 1.7 KiB
| text/html+ruby
| RhtmlLexer
|
|
r25 | <% content_for :head do %> | ||
<%= stylesheet_link_tag 'scaffold' %> | ||||
<% end %> | ||||
|
r0 | |||
|
r25 | <h1>Listing users</h1> | ||
|
r0 | |||
|
r106 | <div class="submitbox"> | ||
|
r0 | <b>Quick add</b> | ||
<% form_tag :action => 'create' do %> | ||||
|
r106 | <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_alias">Alias</label></td> | ||||
<td><label for="user_password">Password</label></td> | ||||
<td><label for="user_password_confirmation">confirm</label></td> | ||||
</tr> | ||||
<tr> | ||||
<td><%= text_field 'user', 'login', :size => 10 %></td> | ||||
<td><%= text_field 'user', 'full_name', :size => 30 %></td> | ||||
<td><%= text_field 'user', 'alias', :size => 10 %></td> | ||||
<td><%= password_field 'user', 'password', :size => 10 %></td> | ||||
<td><%= password_field 'user', 'password_confirmation', :size => 10 %></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' %> | ||||
|
r0 | <% end %> | ||
</div> | ||||
<table> | ||||
<tr> | ||||
<% for column in User.content_columns %> | ||||
<th><%= column.human_name %></th> | ||||
<% end %> | ||||
</tr> | ||||
<% for user in @users %> | ||||
<tr> | ||||
<% for column in User.content_columns %> | ||||
<td><%=h user.send(column.name) %></td> | ||||
<% 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' %> | ||||
|
r4 | <%= link_to 'New list of users', :action => 'new_list' %> | ||