Show More
Commit Description:
fixed login error message recurring problem
Commit Description:
fixed login error message recurring problem
File last commit:
Show/Diff file:
Action:
app/views/user_admin/list.rhtml | 64 lines | 2.0 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 %>
<br/>
<b>What else: </b>
<%= link_to '[New user]', :action => 'new' %>
<%= link_to '[New list of users]', :action => 'new_list' %>
<%= link_to '[Random passwords]', :action => 'random_all_passwords' %>
<%= link_to '[View active users]', :action => 'active' %>
</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' %>