Show More
Commit Description:
added admin users management
Commit Description:
added admin users management
File last commit:
Show/Diff file:
Action:
app/views/user_admin/list.rhtml | 65 lines | 2.0 KiB | text/html+ruby | RhtmlLexer |
jittat
clean up layouts...
r25 <h1>Listing users</h1>
pramook
initial commit...
r0
jittat
[web] import from site...
r106 <div class="submitbox">
pramook
initial commit...
r0 <b>Quick add</b>
<% form_tag :action => 'create' do %>
jittat
[web] import from site...
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_password">Password</label></td>
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <td><label for="user_password_confirmation">Confirm</label></td>
<td><label for="user_email">Email</label></td>
jittat
[web] import from site...
r106 </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>
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <td><%= text_field 'user', 'email', :size => 15 %></td>
jittat
[web] import from site...
r106 <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' %>
pramook
initial commit...
r0 <% end %>
jittat
MERGED change set 372:399 from ytopc08-2 branch...
r190 <br/>
<b>What else: </b>
<%= link_to '[New user]', :action => 'new' %>
<%= link_to '[New list of users]', :action => 'new_list' %>
Jittat Fakcharoenphol
added admin users management
r233 <%= link_to '[View administrators]', :action => 'admin' %>
jittat
added random user passwords, better user creation by list....
r200 <%= link_to '[Random passwords]', :action => 'random_all_passwords' %>
jittat
MERGED change set 372:399 from ytopc08-2 branch...
r190 <%= link_to '[View active users]', :action => 'active' %>
pramook
initial commit...
r0
</div>
jittat
MERGED change set 372:399 from ytopc08-2 branch...
r190
pramook
initial commit...
r0 <table>
<tr>
<% for column in User.content_columns %>
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <% if !@hidden_columns.index(column.name) %>
<th><%= column.human_name %></th>
<% end %>
pramook
initial commit...
r0 <% end %>
</tr>
<% for user in @users %>
<tr>
<% for column in User.content_columns %>
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <% if !@hidden_columns.index(column.name) %>
<td><%=h user.send(column.name) %></td>
<% end %>
pramook
initial commit...
r0 <% 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' %>
jittat
add adding list of users...
r4 <%= link_to 'New list of users', :action => 'new_list' %>