<%= link_to l(:label_user_new), {:action => 'add'}, :class => 'icon icon-add' %>

<%=l(:label_user_plural)%>

<% form_tag() do %>
<%= l(:label_filter_plural) %> <%= select_tag 'status', status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> <%= submit_tag l(:button_apply), :class => "small" %>
<% end %>   <%= sort_header_tag('login', :caption => l(:field_login)) %> <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> <%= sort_header_tag('admin', :caption => l(:field_admin)) %> <%= sort_header_tag('status', :caption => l(:field_status)) %> <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on)) %> <% for user in @users %> "> <% end %>
<%=l(:field_mail)%>
<%= link_to user.login, :action => 'edit', :id => user %> <%= user.firstname %> <%= user.lastname %> <%= user.mail %> <%= image_tag 'true.png' if user.admin? %> <%= image_tag 'locked.png' if user.locked? %><%= image_tag 'user_new.png' if user.registered? %> <%= format_time(user.created_on) %> <%= format_time(user.last_login_on) unless user.last_login_on.nil? %> <% form_tag({:action => 'edit', :id => user}) do %> <% if user.locked? %> <%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %> <%= submit_tag l(:button_unlock), :class => "button-small" %> <% elsif user.registered? %> <%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %> <%= submit_tag l(:button_activate), :class => "button-small" %> <% else %> <%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %> <%= submit_tag l(:button_lock), :class => "button-small" %> <% end %> <% end %>

<%= pagination_links_full @user_pages, @user_count %>

<% html_title(l(:label_user_plural)) -%>