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

<%=l(:label_user_plural)%>

<%= form_tag(users_path, :onsubmit => 'selectAllOptions("selected_columns");', :method => :get, :id => 'user_list_form') do %>
<%= l(:label_filter_plural) %> <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.onsubmit(); this.form.submit(); return false;" %> <% if @groups.present? %> <%= select_tag 'group_id', content_tag('option') + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.onsubmit(); this.form.submit(); return false;" %> <% end %> <%= text_field_tag 'name', params[:name], :size => 30 %>
<%= hidden_field_tag('save', '') %>

<% if defined? observe_field %> <% user_list_form = "$('user_list_form')" %> <% else %> <% user_list_form = "$('#user_list_form')[0]" %> <% end %> <%= link_to_function(l(:button_apply), "var user_list_form = #{user_list_form}; user_list_form.onsubmit(); user_list_form.submit();", :class => 'icon icon-checked') %> <%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %> <%= link_to_function(l(:button_save), "var user_list_form = #{user_list_form}; user_list_form['save'].value = '1'; user_list_form.onsubmit(); user_list_form.submit();", :class => 'icon icon-save') %>

<% end %>
<% @list_settings.columns.each do |column| %> <% if %w(login firstname lastname mail admin created_on last_login_on).include?(column.name.to_s) %> <%= sort_header_tag(column.name.to_s, :caption => column.caption) %> <% else %> <% end %> <% end %> <% for user in @users -%> "> <% @list_settings.columns.each do |column| %> <% end %> <% end -%>
<%= h(column.caption) %>
<%= extended_column_content(column, user) %> <%= change_status_link(user) %> <%= delete_link user_path(user, :back_url => users_path(params)) unless User.current == user %>

<%= pagination_links_full @user_pages, @user_count %>

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