Cleanup and improvement of tasks lists

Removed duplicate code in task lists views (now using a single class
with constructor parameters). Added specific display for assigned tasks
that have missing dependencies.
This commit is contained in:
Emmanuel BENOîT 2012-02-06 17:57:56 +01:00
parent dae65c0b4b
commit 634ed8f5ee
5 changed files with 67 additions and 64 deletions
includes/t-tasks

View file

@ -31,7 +31,7 @@ class Ctrl_AllTasks
}
$tree = Loader::DAO( 'items' )->getTree( );
$box = Loader::View( 'box' , $title , Loader::View( 'all_tasks' , $tasks , $mode ) )
$box = Loader::View( 'box' , $title , Loader::View( 'tasks_list' , $tasks ) )
->addButton( BoxButton::create( $bTitle , 'tasks?mode=' . $bMode )
->setClass( 'icon refresh' ) );
if ( !empty( $tree ) ) {