From 27e19619ff07baaf8a8ea69ea400737942be1974 Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Sun, 29 Mar 2020 16:13:25 +0300 Subject: [PATCH 2/2] Option to Check/Uncheck all block columns in export --- app/views/issues/index.html.erb | 15 ++++++++++----- app/views/timelog/index.html.erb | 15 ++++++++++----- public/stylesheets/application.css | 3 ++- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index c4719569d..880c953ea 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -47,11 +47,16 @@

-

- <% @query.available_block_columns.each do |column| %> - - <% end %> -

+ <% if @query.available_block_columns.any? %> +
+ + <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %> + + <% @query.available_block_columns.each do |column| %> + + <% end %> +
+ <% end %> <%= export_csv_encoding_select_tag %> <% if @issue_count > Setting.issues_export_limit.to_i %>

diff --git a/app/views/timelog/index.html.erb b/app/views/timelog/index.html.erb index f60b51064..7b9778d8e 100644 --- a/app/views/timelog/index.html.erb +++ b/app/views/timelog/index.html.erb @@ -40,11 +40,16 @@

-

- <% @query.available_block_columns.each do |column| %> - - <% end %> -

+ <% if @query.available_block_columns.any? %> +
+ + <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %> + + <% @query.available_block_columns.each do |column| %> + + <% end %> +
+ <% end %> <%= export_csv_encoding_select_tag %>

<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 8f92c8e98..02e497448 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -336,7 +336,7 @@ tr.user.locked, tr.user.registered { color: #aaa; } tr.user.locked a, tr.user.registered a { color: #aaa; } table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;} -table.permissions tr.group>td:nth-of-type(1), +table.permissions tr.group>td:nth-of-type(1), table.tracker-summary tr.group>td:nth-of-type(1) {font-weight: bold;} tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;} @@ -764,6 +764,7 @@ span.pagination>span {white-space:nowrap;} } #search-form fieldset p {margin:0.2em 0;} +#csv-export-options fieldset {padding: 0;} /***** Tabular forms ******/ .tabular p{ -- 2.22.0