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:
parent
dae65c0b4b
commit
634ed8f5ee
5 changed files with 67 additions and 64 deletions
includes/t-tasks
|
@ -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 ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue