summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-21 04:13:37 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-21 04:13:37 +0000
commit0c037a7b48e061fa32e96c21718b30560431c4c7 (patch)
treefeba0bcd09960e044151cdafd0b69f740b098918 /app/views
parentcfbc2e7a33cb068f1dd71b06a2625ebeecd56ccb (diff)
downloadredmine-0c037a7b48e061fa32e96c21718b30560431c4c7.tar.gz
redmine-0c037a7b48e061fa32e96c21718b30560431c4c7.zip
CSV export of issues report (#37362).
Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/reports/_details.html.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb
index 3361117fc..3c6472743 100644
--- a/app/views/reports/_details.html.erb
+++ b/app/views/reports/_details.html.erb
@@ -25,6 +25,20 @@
<% end %>
</tbody>
</table>
+<% 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>
+ <%= form_tag(project_issues_report_details_path(@project, :detail => params[:detail], :format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
+ <%= export_csv_encoding_select_tag %>
+ <p class="buttons">
+ <%= submit_tag l(:button_export), :name => nil, :onclick => 'hideModal(this);', :data => {:disable_with => false} %>
+ <%= link_to_function l(:button_cancel), 'hideModal(this);' %>
+ </p>
+ <% end %>
+</div>
+
<div class="issue-report-graph hide-when-print">
<canvas id="issues_by_<%= params[:detail] %>"></canvas>
</div>