Project

General

Profile

Defect #33169 » 0002-Option-to-Check-Uncheck-all-block-columns-in-export.patch

Marius BĂLTEANU, 2020-03-29 15:15

View differences:

app/views/issues/index.html.erb
47 47
    <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
48 48
    <label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label>
49 49
  </p>
50
  <p>
51
    <% @query.available_block_columns.each do |column| %>
52
      <label><%= check_box_tag 'c[]', column.name, @query.has_column?(column) %> <%= column.caption %></label>
53
    <% end %>
54
  </p>
50
  <% if @query.available_block_columns.any? %>
51
    <fieldset id="csv-export-block-columns">
52
      <legend>
53
        <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %>
54
      </legend>
55
      <% @query.available_block_columns.each do |column| %>
56
        <label><%= check_box_tag 'c[]', column.name, @query.has_column?(column), :id => nil %> <%= column.caption %></label>
57
      <% end %>
58
    </fieldset>
59
  <% end %>
55 60
  <%= export_csv_encoding_select_tag %>
56 61
  <% if @issue_count > Setting.issues_export_limit.to_i %>
57 62
  <p class="icon icon-warning">
app/views/timelog/index.html.erb
40 40
    <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
41 41
    <label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label>
42 42
  </p>
43
  <p>
44
    <% @query.available_block_columns.each do |column| %>
45
      <label><%= check_box_tag 'c[]', column.name, @query.has_column?(:column) %> <%= column.caption %></label>
46
    <% end %>
47
  </p>
43
  <% if @query.available_block_columns.any? %>
44
    <fieldset id="csv-export-block-columns">
45
      <legend>
46
        <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %>
47
      </legend>
48
      <% @query.available_block_columns.each do |column| %>
49
        <label><%= check_box_tag 'c[]', column.name, @query.has_column?(:column), :id => nil %> <%= column.caption %></label>
50
      <% end %>
51
    </fieldset>
52
  <% end %>
48 53
  <%= export_csv_encoding_select_tag %>
49 54
  <p class="buttons">
50 55
    <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
public/stylesheets/application.css
336 336
tr.user.locked a, tr.user.registered a { color: #aaa; }
337 337

  
338 338
table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;}
339
table.permissions tr.group>td:nth-of-type(1), 
339
table.permissions tr.group>td:nth-of-type(1),
340 340
table.tracker-summary tr.group>td:nth-of-type(1) {font-weight: bold;}
341 341

  
342 342
tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
......
764 764
}
765 765

  
766 766
#search-form fieldset p {margin:0.2em 0;}
767
#csv-export-options fieldset {padding: 0;}
767 768

  
768 769
/***** Tabular forms ******/
769 770
.tabular p{
(5-5/5)