<%=_('Users')%>

<%= sort_header_tag('users.login', :caption => _('Login')) %> <%= sort_header_tag('users.firstname', :caption => _('Firstname')) %> <%= sort_header_tag('users.lastname', :caption => _('Lastname')) %> <%= sort_header_tag('users.admin', :caption => _('Admin')) %> <%= sort_header_tag('users.locked', :caption => _('Locked')) %> <%= sort_header_tag('users.created_on', :caption => _('Created on')) %> <%= sort_header_tag('users.last_login_on', :caption => _('Last login')) %> <% for user in @users %> <% end %>
<%=_('Mail')%>
<%= link_to user.login, :action => 'edit', :id => user %> <%= user.firstname %> <%= user.lastname %> <%= user.mail %> <%= image_tag 'true' if user.admin? %> <%= image_tag 'locked' if user.locked? %> <%= format_time(user.created_on) %> <%= format_time(user.last_login_on) unless user.last_login_on.nil? %> <%= start_form_tag :action => 'edit', :id => user %> <% if user.locked? %> <%= hidden_field_tag 'user[locked]', false %> <%= submit_tag _('Unlock'), :class => "button-small" %> <% else %> <%= hidden_field_tag 'user[locked]', true %> <%= submit_tag _('Lock'), :class => "button-small" %> <% end %> <%= end_form_tag %>

<%= pagination_links_full @user_pages %> [ <%= @user_pages.current.first_item %> - <%= @user_pages.current.last_item %> / <%= @user_count %> ]

<%= link_to '» ' + _('New user'), :action => 'add' %>