Remove time form on task summary page and move that to task edit form

This commit is contained in:
Frederic Guillot
2016-02-05 19:00:40 -05:00
parent a683c17fa7
commit e2181612b9
10 changed files with 17 additions and 61 deletions

View File

@@ -22,27 +22,6 @@ class Taskmodification extends Base
$this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])));
}
/**
* Update time tracking information
*
* @access public
*/
public function time()
{
$task = $this->getTask();
$values = $this->request->getValues();
list($valid, ) = $this->taskValidator->validateTimeModification($values);
if ($valid && $this->taskModification->update($values)) {
$this->flash->success(t('Task updated successfully.'));
} else {
$this->flash->failure(t('Unable to update your task.'));
}
$this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])));
}
/**
* Edit description form
*
@@ -104,6 +83,7 @@ class Taskmodification extends Base
}
$this->dateParser->format($values, array('date_due'));
$this->dateParser->format($values, array('date_started'), 'Y-m-d H:i');
$this->response->html($this->helper->layout->task('task_modification/edit_task', array(
'project' => $project,