From 7dd0a24411497509944c94373ad5831ff8b6c943 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 31 Aug 2014 20:44:58 -0800 Subject: Improve project move view --- app/Controller/Task.php | 5 ++++- app/Templates/task_move_project.php | 28 +++++++++++++++++----------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 0fc42ce4..6936185f 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -436,6 +436,9 @@ class Task extends Base $task = $this->getTask(); $values = $task; $errors = array(); + $projects_list = $this->project->getAvailableList($this->acl->getUserId()); + + unset($projects_list[$task['project_id']]); if ($this->request->isPost()) { @@ -457,7 +460,7 @@ class Task extends Base 'values' => $values, 'errors' => $errors, 'task' => $task, - 'projects_list' => $this->project->getAvailableList($this->acl->getUserId()), + 'projects_list' => $projects_list, 'menu' => 'tasks', 'title' => t('Move the task to another project') ))); diff --git a/app/Templates/task_move_project.php b/app/Templates/task_move_project.php index 190a93d9..3bc3bcb8 100644 --- a/app/Templates/task_move_project.php +++ b/app/Templates/task_move_project.php @@ -2,17 +2,23 @@

-
+ +

+ - + - - -
+ -
- - - -
-
\ No newline at end of file + + +
+ +
+ + + +
+ + + \ No newline at end of file -- cgit v1.2.3