diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-19 20:41:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-19 20:41:54 +0000 |
commit | f8c649320f849dec288407a771d446108dc40931 (patch) | |
tree | c8dfd1900c26ade2c57a63fccb8c5a88b2aa5b40 /app/views/timelog | |
parent | af92686c62c33d5566241d619b06b03f82ecb269 (diff) | |
download | redmine-f8c649320f849dec288407a771d446108dc40931.tar.gz redmine-f8c649320f849dec288407a771d446108dc40931.zip |
Makes all time entry columns available in the CSV export.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11442 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r-- | app/views/timelog/index.html.erb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/views/timelog/index.html.erb b/app/views/timelog/index.html.erb index 52c9118e7..e1fa5b26e 100644 --- a/app/views/timelog/index.html.erb +++ b/app/views/timelog/index.html.erb @@ -22,8 +22,22 @@ <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :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;" %> <% 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 class="buttons"> + <%= 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 %> <% html_title l(:label_spent_time), l(:label_details) %> |