app/views/users/_index_buttons.html.erb
<%= button_bar do %>
<%= button :back, _('Back'), :controller => 'admin_panel' %>
<%= button :file, _('Export People list'), '#!', {class: 'export-people-list'} %>
<%= button :email, _('Send e-mail to users'), :action => 'send_mail' %>
<% end %>
<div class="export-people-field" >
<%= form_tag({action: 'download', controller: 'users'}) do %>
<label><%=_('Select the file format')%></label>
<div class="download-format">
<label><%= radio_button_tag('format', 'xml', true) %> XML </label>
<label><%= radio_button_tag('format', 'csv', false) %> CSV </label>
</div>
<%= exportable_fields_selector(
"fields[]",
_('Select the fields to be included in the people list'),
current_person,
%w(name email)
) %>
<%= submit_button 'download', _('Download') %>
<%= button('ban', _('Cancel'), '#!', {id: 'cancel-exportation'}) %>
<% end %>
</div>