summaryrefslogtreecommitdiffstats
path: root/app/views/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-08 18:50:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-08 18:50:22 +0000
commit77bac4b14d3bdf0ec53d88ee4aef05471bd8d198 (patch)
tree2ae6a48b47a7ee7fe09427c83cc5fcd0259fdc96 /app/views/settings
parentb7a435f7a02080ce07b79efc60178ef745ef3c4d (diff)
downloadredmine-77bac4b14d3bdf0ec53d88ee4aef05471bd8d198.tar.gz
redmine-77bac4b14d3bdf0ec53d88ee4aef05471bd8d198.zip
Ability to set default column order in issue list (#11068).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9780 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/_issues.html.erb12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/settings/_issues.html.erb b/app/views/settings/_issues.html.erb
index 429685638..6c9bf4553 100644
--- a/app/views/settings/_issues.html.erb
+++ b/app/views/settings/_issues.html.erb
@@ -1,4 +1,4 @@
-<%= form_tag({:action => 'edit', :tab => 'issues'}) do %>
+<%= form_tag({:action => 'edit', :tab => 'issues'}, :onsubmit => 'selectAllOptions("selected_columns");') do %>
<div class="box tabular settings">
<p><%= setting_check_box :cross_project_issue_relations %></p>
@@ -16,9 +16,13 @@
<p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
</div>
-<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>
-<%= setting_multiselect(:issue_list_default_columns,
- Query.new.available_columns.collect {|c| [c.caption, c.name.to_s]}, :label => false) %>
+<fieldset class="box">
+ <legend><%= l(:setting_issue_list_default_columns) %></legend>
+ <%= render :partial => 'queries/columns',
+ :locals => {
+ :query => Query.new(:column_names => Setting.issue_list_default_columns),
+ :tag_name => 'settings[issue_list_default_columns][]'
+ } %>
</fieldset>
<%= submit_tag l(:button_save) %>