summaryrefslogtreecommitdiffstats
path: root/app/views/context_menus
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-09 18:22:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-09 18:22:11 +0000
commit5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78 (patch)
tree4814399d770b5f3fe3197841c3bcf9689ab0e149 /app/views/context_menus
parentde7c49c6ca79f87b697744688d57a07e7af17b4c (diff)
downloadredmine-5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78.tar.gz
redmine-5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78.zip
Bulk-edit custom fields through context menu (#6296).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8824 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/context_menus')
-rw-r--r--app/views/context_menus/issues.html.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb
index 135edba99..375758484 100644
--- a/app/views/context_menus/issues.html.erb
+++ b/app/views/context_menus/issues.html.erb
@@ -100,6 +100,20 @@
</li>
<% end %>
+ <% @options_by_custom_field.each do |field, options| %>
+ <li class="folder">
+ <a href="#" class="submenu"><%= h(field.name) %></a>
+ <ul>
+ <% options.each do |text, value| %>
+ <li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
+ <% end %>
+ <% unless field.is_required? %>
+ <li><%= bulk_update_custom_field_context_menu_link(field, l(:label_none), '') %></li>
+ <% end %>
+ </ul>
+ </li>
+ <% end %>
+
<% if !@issue.nil? %>
<% if @can[:log_time] -%>
<li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue},