add bulk edit and bulk update actions for time entries (#7996).

get bulk edit form action working by mapping permissions.

Contributed by Adam Soltys.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5313 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-04-04 11:53:29 +00:00
parent ab31a114fd
commit 8a31517288
4 changed files with 65 additions and 3 deletions
+7
View File
@@ -23,6 +23,13 @@ ActionController::Routing::Routes.draw do |map|
time_report.connect 'time_entries/report.:format'
end
map.bulk_edit_time_entry 'time_entries/bulk_edit',
:controller => 'timelog', :action => 'bulk_edit', :conditions => { :method => :get }
map.bulk_update_time_entry 'time_entries/bulk_edit',
:controller => 'timelog', :action => 'bulk_update', :conditions => { :method => :post }
map.time_entries_context_menu '/time_entries/context_menu',
:controller => 'context_menus', :action => 'time_entries'
# TODO: wasteful since this is also nested under issues, projects, and projects/issues
map.resources :time_entries, :controller => 'timelog'
map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post}