From 5b50b2d1e2eb222ddc6000d68ec612a76347ded9 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 26 May 2009 13:48:08 -0400 Subject: [PATCH] clients can put tasks on hold no special code for re-enabling them. Clients can click 'request price' but currently there's no code to remember if the price was accepted or not --- code/tasks.php | 1 + tasks.html | 2 ++ tasks.php | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/code/tasks.php b/code/tasks.php index b985661..a716fa2 100644 --- a/code/tasks.php +++ b/code/tasks.php @@ -4,6 +4,7 @@ define('TASK_DRAFT', 0); define('TASK_NEEDS_CLARIFICATION', 100); define('TASK_NEEDS_QUOTE', 200); define('TASK_NEEDS_GO_AHEAD', 300); +define('TASK_ON_HOLD', 350); define('TASK_QUEUED', 400); define('TASK_WORKING', 500); define('TASK_BUG', 600); diff --git a/tasks.html b/tasks.html index da0188e..08e7a47 100644 --- a/tasks.html +++ b/tasks.html @@ -33,6 +33,8 @@

I'm starting on this now.

+

Place this task on hold.

+

Mark this task as finished (request testing).

Please test everything in the narrative! If everything is working, Mark this task as finished Otherwise please e-mail or call Jason.

diff --git a/tasks.php b/tasks.php index 6d382bc..7116567 100644 --- a/tasks.php +++ b/tasks.php @@ -328,6 +328,13 @@ function tasks_edit_main() { $state = TASK_BUG; } + if(isset($_REQUEST['tasks_hold_id'])) { + $id = $_REQUEST['tasks_hold_id']; + db_update('tasks', 'state', TASK_ON_HOLD, 'where id=%i', $id); + message("Task removed from Jason's to-do list."); + return './'; + } + if(isset($_REQUEST['tasks_mark_paid_id'])) { if(!logged_in_as_contractor()) { message("Error: only Jason can mark tasks as paid."); -- 1.7.10.4