<%= link_to sprite_icon('add', l(:label_user_new)), new_user_path, :class => 'icon icon-add' %> <%= actions_dropdown do %> <% if User.current.allowed_to?(:import_users, nil, :global => true) %> <%= link_to sprite_icon('import', l(:button_import)), new_users_import_path, :class => 'icon icon-import' %> <% end %> <% end %>

<%= @query.new_record? ? l(:label_user_plural) : @query.name %>

<%= @query.persisted? && @query.description.present? ? content_tag('p', @query.description, class: 'subtitle') : '' %> <%= form_tag(users_path, method: :get, id: 'query_form') do %> <%= render partial: 'queries/query_form' %> <% end %> <% if @query.valid? %> <% if @users.empty? %>

<%= l(:label_no_data) %>

<% else %> <%= render_query_totals(@query) %> <%= render partial: 'list', :locals => { :users => @users }%> <%= pagination_links_full @user_pages, @user_count %> <% end %> <% other_formats_links do |f| %> <%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '350px'); return false;" %> <% end %> <% end %> <% content_for :sidebar do %> <%= render_sidebar_queries(UserQuery, nil) %> <%= call_hook(:view_users_sidebar_queries_bottom) %> <% end %> <% html_title(l(:label_user_plural)) -%>