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