summaryrefslogtreecommitdiffstats
path: root/app/views/issues/index.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-20 13:23:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-20 13:23:20 +0000
commitca300ccdeaf3cae3015a548ba3fffa9c6f112c55 (patch)
tree9b7d5d049a044c2cc39d44ca9a3e7d8af7edb614 /app/views/issues/index.html.erb
parent617cb8d270acdf78f2c0c144d89668cd28750691 (diff)
downloadredmine-ca300ccdeaf3cae3015a548ba3fffa9c6f112c55.tar.gz
redmine-ca300ccdeaf3cae3015a548ba3fffa9c6f112c55.zip
Adds a dialog box for CSV export options (#4742).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7874 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/index.html.erb')
-rw-r--r--app/views/issues/index.html.erb19
1 files changed, 18 insertions, 1 deletions
diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb
index a5e657ec1..22791a9ae 100644
--- a/app/views/issues/index.html.erb
+++ b/app/views/issues/index.html.erb
@@ -54,10 +54,27 @@
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %>
- <%= f.link_to 'CSV', :url => params %>
+ <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
<%= f.link_to 'PDF', :url => params %>
<% end %>
+<div id="csv-export-options" style="display:none;">
+ <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
+ <% form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %>
+ <p>
+ <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br />
+ <label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label>
+ </p>
+ <p>
+ <label><%= check_box_tag 'description', '1' %> <%= l(:field_description) %></label>
+ </p>
+ <p style="text-align:right; margin-bottom:0">
+ <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %>
+ <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ </p>
+ <% end %>
+</div>
+
<% end %>
<%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %>