<%= 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 %>
<%= l(:label_export_options, :export_format => 'CSV') %>
<%= form_tag(users_path(format: 'csv'), method: :get, id: 'csv-export-form') do %>
<%= query_as_hidden_field_tags(@query) %>
<%= hidden_field_tag('query_name', @query.name) %>
<% if @query.available_block_columns.any? %>
<% end %>
<%= export_csv_encoding_select_tag %>
<%= export_csv_separator_select_tag %>
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
<%= link_to_function l(:button_cancel), "hideModal(this);" %>
<% 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)) -%>