@@ -1,44 +1,44 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to l(:label_user_new), {:action => 'add'}, :class => 'icon icon-add' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%=l(:label_user_plural)%></h2> |
|
6 | 6 | |
|
7 | 7 | <% form_tag({}, :method => :get) do %> |
|
8 | 8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
|
9 | 9 | <label><%= l(:field_status) %> :</label> |
|
10 | 10 | <%= select_tag 'status', status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> |
|
11 | 11 | </fieldset> |
|
12 | 12 | <% end %> |
|
13 | 13 | |
|
14 | 14 | |
|
15 | 15 | <table class="list"> |
|
16 | 16 | <thead><tr> |
|
17 | 17 | <%= sort_header_tag('login', :caption => l(:field_login)) %> |
|
18 | 18 | <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> |
|
19 | 19 | <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> |
|
20 | 20 | <%= sort_header_tag('mail', :caption => l(:field_mail)) %> |
|
21 | 21 | <%= sort_header_tag('admin', :caption => l(:field_admin), :default_order => 'desc') %> |
|
22 | 22 | <%= sort_header_tag('created_on', :caption => l(:field_created_on), :default_order => 'desc') %> |
|
23 | 23 | <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on), :default_order => 'desc') %> |
|
24 | 24 | <th></th> |
|
25 | 25 | </tr></thead> |
|
26 | 26 | <tbody> |
|
27 | 27 | <% for user in @users -%> |
|
28 | 28 | <tr class="user <%= cycle("odd", "even") %> <%= %w(anon active registered locked)[user.status] %>"> |
|
29 | 29 | <td class="username"><%= link_to h(user.login), :action => 'edit', :id => user %></td> |
|
30 | 30 | <td class="firstname"><%= h(user.firstname) %></td> |
|
31 | 31 | <td class="lastname"><%= h(user.lastname) %></td> |
|
32 | <td class="email"><%= h(user.mail) %></td> | |
|
32 | <td class="email"><%= mail_to(h(user.mail)) %></td> | |
|
33 | 33 | <td align="center"><%= image_tag('true.png') if user.admin? %></td> |
|
34 | 34 | <td class="created_on" align="center"><%= format_time(user.created_on) %></td> |
|
35 | 35 | <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td> |
|
36 | 36 | <td><small><%= change_status_link(user) %></small></td> |
|
37 | 37 | </tr> |
|
38 | 38 | <% end -%> |
|
39 | 39 | </tbody> |
|
40 | 40 | </table> |
|
41 | 41 | |
|
42 | 42 | <p class="pagination"><%= pagination_links_full @user_pages, @user_count %></p> |
|
43 | 43 | |
|
44 | 44 | <% html_title(l(:label_user_plural)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now