##// END OF EJS Templates
Disable description and columns when checking "Default columns" (#24907)....
Jean-Philippe Lang -
r15922:1fefa970d609
parent child
Show More
@@ -26,12 +26,12
26 <fieldset id="options"><legend><%= l(:label_options) %></legend>
26 <fieldset id="options"><legend><%= l(:label_options) %></legend>
27 <p><label for="query_default_columns"><%=l(:label_default_columns)%></label>
27 <p><label for="query_default_columns"><%=l(:label_default_columns)%></label>
28 <%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns',
28 <%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns',
29 :onclick => 'if (this.checked) {$("#columns").hide();} else {$("#columns").show();}' %></p>
29 :data => {:disables => "#columns, .block_columns input"} %></p>
30
30
31 <p><label for="query_group_by"><%= l(:field_group_by) %></label>
31 <p><label for="query_group_by"><%= l(:field_group_by) %></label>
32 <%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %></p>
32 <%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %></p>
33
33
34 <p><label><%= l(:button_show) %></label>
34 <p class="block_columns"><label><%= l(:button_show) %></label>
35 <%= available_block_columns_tags(@query) %></p>
35 <%= available_block_columns_tags(@query) %></p>
36
36
37 <p><label><%= l(:label_total_plural) %></label>
37 <p><label><%= l(:label_total_plural) %></label>
@@ -71,7 +71,7
71 <% end %>
71 <% end %>
72
72
73 <% unless params[:gantt] %>
73 <% unless params[:gantt] %>
74 <%= content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>
74 <%= content_tag 'fieldset', :id => 'columns' do %>
75 <legend><%= l(:field_column_names) %></legend>
75 <legend><%= l(:field_column_names) %></legend>
76 <%= render_query_columns_selection(query) %>
76 <%= render_query_columns_selection(query) %>
77 <% end %>
77 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now