diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-29 17:52:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-29 17:52:27 +0000 |
commit | efc05bc73cf53e2c9d57147f7226f9b17a6350ce (patch) | |
tree | 3f7f5f239bf1e1a298f1d26cf459d0524fad3e4a /app/views/context_menus | |
parent | 41e7210210b5e50bf57bbcf41259a4d343bba1f0 (diff) | |
download | redmine-efc05bc73cf53e2c9d57147f7226f9b17a6350ce.tar.gz redmine-efc05bc73cf53e2c9d57147f7226f9b17a6350ce.zip |
Add time entries custom fields to the context menu for quick bulk edit (#17484).
git-svn-id: http://svn.redmine.org/redmine/trunk@13335 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/context_menus')
-rw-r--r-- | app/views/context_menus/time_entries.html.erb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/context_menus/time_entries.html.erb b/app/views/context_menus/time_entries.html.erb index 10dbcafd2..3ab8d07aa 100644 --- a/app/views/context_menus/time_entries.html.erb +++ b/app/views/context_menus/time_entries.html.erb @@ -23,6 +23,20 @@ </li> <% end %> + <% @options_by_custom_field.each do |field, options| %> + <li class="folder cf_<%= field.id %>"> + <a href="#" class="submenu"><%= h(field.name) %></a> + <ul> + <% options.each do |text, value| %> + <li><%= bulk_update_time_entry_custom_field_context_menu_link(field, text, value || text) %></li> + <% end %> + <% unless field.is_required? %> + <li><%= bulk_update_time_entry_custom_field_context_menu_link(field, l(:label_none), '__none__') %></li> + <% end %> + </ul> + </li> + <% end %> + <%= call_hook(:view_time_entries_context_menu_end, {:time_entries => @time_entries, :can => @can, :back => @back }) %> <li> |