Feature #39806 » 0001-fix-query-columns-selection-in-admin-and-my-page-398.patch
app/views/my/blocks/_issues.erb | ||
---|---|---|
10 | 10 | |
11 | 11 |
<div id="<%= block %>-settings" style="display:none;"> |
12 | 12 |
<%= form_tag(my_page_path, :remote => true) do %> |
13 |
<div id="list-definition"> |
|
13 | 14 |
<div class="box"> |
14 | 15 |
<%= render_query_columns_selection(query, :name => "settings[#{block}][columns]") %> |
15 | 16 |
</div> |
17 |
</div> |
|
16 | 18 |
<p> |
17 | 19 |
<%= submit_tag l(:button_save) %> |
18 | 20 |
<%= link_to_function l(:button_cancel), "$('##{block}-settings').toggle();" %> |
app/views/settings/_issues.html.erb | ||
---|---|---|
39 | 39 | |
40 | 40 |
<fieldset class="box"> |
41 | 41 |
<legend><%= l(:setting_issue_list_default_columns) %></legend> |
42 |
<div id="list-definition"> |
|
43 |
<div> |
|
42 | 44 |
<%= render_query_columns_selection( |
43 | 45 |
IssueQuery.new(:column_names => Setting.issue_list_default_columns), |
44 | 46 |
:name => 'settings[issue_list_default_columns]') %> |
47 |
</div> |
|
48 |
</div> |
|
45 | 49 | |
46 | 50 |
<p><%= setting_multiselect :issue_list_default_totals, |
47 | 51 |
IssueQuery.new(:totalable_names => Setting.issue_list_default_totals).available_totalable_columns.map {|c| [c.caption, c.name.to_s]}, |
app/views/settings/_projects.html.erb | ||
---|---|---|
26 | 26 |
<%= content_tag('label', l(:"label_display_type_#{t}"), :for => "settings_project_list_display_type_#{t}", :class => "inline") %> |
27 | 27 |
<% end %> |
28 | 28 |
</p> |
29 |
<div id="list-definition"> |
|
30 |
<div> |
|
29 | 31 |
<%= render_query_columns_selection(query, |
30 | 32 |
:name => 'settings[project_list_defaults][column_names]') %> |
33 |
</div> |
|
34 |
</div> |
|
31 | 35 | |
32 | 36 |
<p> |
33 | 37 |
<label><%= l(:label_default_query) %></label> |