tasks/includes/t-tasks/pages.inc.php
Emmanuel BENOîT d28f5741fe Initial sub-tasks support
In addition to normal dependencies, the application now supports
sub-tasks. Sub-tasks can be added into any existing task (including
other sub-tasks, Inception-style).

Dependencies can only be added between global tasks, or between
sub-tasks of the same task. It is no longer possible to mark a task as
finished if it has incomplete sub-tasks, and conversedly, it is not
possible to reactivate a sub-task if its parent is marked as completed.

A pair of buttons allowing tasks to be moved up and down in the task
hierarachy have been added.
2012-02-10 09:20:35 +01:00

27 lines
651 B
PHP

<?php
class Page_TasksTasks
extends AuthenticatedPage
{
public function __construct()
{
parent::__construct( array(
'' => 'all_tasks' ,
'add' => 'add_task_form' ,
'claim' => 'task_claim' ,
'delete' => 'delete_task_form' ,
'edit' => 'edit_task_form' ,
'finish' => array( 'toggle_task' , false ) ,
'restart' => array( 'toggle_task' , true ) ,
'view' => 'view_task' ,
'deps/add' => 'dependency_add_form' ,
'deps/delete' => 'dependency_delete_form' ,
'move/down' => 'task_move_down' ,
'move/up' => 'task_move_up' ,
'notes/edit' => 'edit_note_form' ,
'notes/delete' => 'delete_note_form' ,
));
}
}