Chris@0
|
1 <div class="contextual">
|
chris@37
|
2 <%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
Chris@0
|
3 </div>
|
Chris@0
|
4
|
Chris@0
|
5 <h2><%=l(:label_user_plural)%></h2>
|
Chris@0
|
6
|
Chris@0
|
7 <% form_tag({}, :method => :get) do %>
|
Chris@0
|
8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
|
Chris@0
|
9 <label><%= l(:field_status) %>:</label>
|
Chris@0
|
10 <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
|
Chris@0
|
11 <label><%= l(:label_user) %>:</label>
|
Chris@0
|
12 <%= text_field_tag 'name', params[:name], :size => 30 %>
|
Chris@0
|
13 <%= submit_tag l(:button_apply), :class => "small", :name => nil %>
|
Chris@0
|
14 </fieldset>
|
Chris@0
|
15 <% end %>
|
Chris@0
|
16
|
Chris@0
|
17
|
Chris@0
|
18 <div class="autoscroll">
|
Chris@0
|
19 <table class="list">
|
Chris@0
|
20 <thead><tr>
|
Chris@0
|
21 <%= sort_header_tag('login', :caption => l(:field_login)) %>
|
Chris@0
|
22 <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %>
|
Chris@0
|
23 <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %>
|
Chris@0
|
24 <%= sort_header_tag('mail', :caption => l(:field_mail)) %>
|
Chris@0
|
25 <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %>
|
Chris@0
|
26 <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %>
|
Chris@0
|
27 <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %>
|
Chris@0
|
28 <th></th>
|
Chris@0
|
29 </tr></thead>
|
Chris@0
|
30 <tbody>
|
Chris@0
|
31 <% for user in @users -%>
|
Chris@0
|
32 <tr class="user <%= cycle("odd", "even") %> <%= %w(anon active registered locked)[user.status] %>">
|
chris@37
|
33 <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td>
|
Chris@0
|
34 <td class="firstname"><%= h(user.firstname) %></td>
|
Chris@0
|
35 <td class="lastname"><%= h(user.lastname) %></td>
|
Chris@0
|
36 <td class="email"><%= mail_to(h(user.mail)) %></td>
|
Chris@0
|
37 <td align="center"><%= checked_image user.admin? %></td>
|
Chris@0
|
38 <td class="created_on" align="center"><%= format_time(user.created_on) %></td>
|
Chris@0
|
39 <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
|
Chris@0
|
40 <td><small><%= change_status_link(user) %></small></td>
|
Chris@0
|
41 </tr>
|
Chris@0
|
42 <% end -%>
|
Chris@0
|
43 </tbody>
|
Chris@0
|
44 </table>
|
Chris@0
|
45 </div>
|
Chris@0
|
46 <p class="pagination"><%= pagination_links_full @user_pages, @user_count %></p>
|
Chris@0
|
47
|
Chris@0
|
48 <% html_title(l(:label_user_plural)) -%>
|