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
This commit is contained in:
Jean-Philippe Lang
2012-02-09 18:22:11 +00:00
parent de7c49c6ca
commit 5e0c1cc5ce
6 changed files with 136 additions and 2 deletions
+14
View File
@@ -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},