Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
<h2><%=l(:label_user_plural)%></h2>
|
||||
|
||||
<%= form_tag(users_path, :method => :get) do %>
|
||||
<%= form_tag(users_path, { :method => :get, :id => 'users_form' }) do %>
|
||||
<fieldset><legend><%= l(:label_filter_plural) %></legend>
|
||||
<label for='status'><%= l(:field_status) %>:</label>
|
||||
<%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
|
||||
|
@ -19,6 +19,7 @@
|
|||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
|
||||
<%= link_to l(:button_clear), users_path, :class => 'icon icon-reload' %>
|
||||
</fieldset>
|
||||
<%= hidden_field_tag 'encoding', l(:general_csv_encoding) unless l(:general_csv_encoding).casecmp('UTF-8') == 0 %>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
@ -55,6 +56,27 @@
|
|||
</table>
|
||||
</div>
|
||||
<span class="pagination"><%= pagination_links_full @user_pages, @user_count %></span>
|
||||
<% other_formats_links do |f| %>
|
||||
<%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
|
||||
<% end %>
|
||||
<div id="csv-export-options" style="display: none;">
|
||||
<h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
|
||||
<%= export_csv_encoding_select_tag %>
|
||||
<p class="buttons">
|
||||
<%= submit_tag l(:button_export), :name => nil, :id => 'csv-export-button' %>
|
||||
<%= submit_tag l(:button_cancel), :name => nil, :onclick => 'hideModal(this);', :type => 'button' %>
|
||||
</p>
|
||||
</div>
|
||||
<%= javascript_tag do %>
|
||||
$(document).ready(function(){
|
||||
$('input#csv-export-button').click(function(){
|
||||
$('form input#encoding').val($('select#encoding option:selected').val());
|
||||
$('form#users_form').attr('action', "<%= users_path(:format => 'csv') %>").submit();
|
||||
$('form#users_form').attr('action', '<%= users_path %>');
|
||||
hideModal(this);
|
||||
});
|
||||
});
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue