diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-23 21:24:03 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-23 21:24:03 -0500 |
commit | f69cb9f466f03461b89243428603207c0e0d94ff (patch) | |
tree | 3eabe5389177fa031eb94241ffdf4bc6b6738400 | |
parent | 4b7a72e931a52753855c8993c65ec8a017555f72 (diff) |
Remove project dropdown from task edit
-rw-r--r-- | controllers/task.php | 2 | ||||
-rw-r--r-- | templates/task_edit.php | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/controllers/task.php b/controllers/task.php index 79f2c7d0..bff29f8c 100644 --- a/controllers/task.php +++ b/controllers/task.php @@ -121,7 +121,6 @@ class Task extends Base $this->response->html($this->template->layout('task_edit', array( 'errors' => array(), 'values' => $task, - 'projects_list' => $this->project->getListByStatus(\Model\Project::ACTIVE), 'columns_list' => $this->board->getColumnsList($task['project_id']), 'users_list' => $this->user->getList(), 'colors_list' => $this->task->getColors(), @@ -150,7 +149,6 @@ class Task extends Base $this->response->html($this->template->layout('task_edit', array( 'errors' => $errors, 'values' => $values, - 'projects_list' => $this->project->getListByStatus(\Model\Project::ACTIVE), 'columns_list' => $this->board->getColumnsList($values['project_id']), 'users_list' => $this->user->getList(), 'colors_list' => $this->task->getColors(), diff --git a/templates/task_edit.php b/templates/task_edit.php index cf01c4a7..633ac9ae 100644 --- a/templates/task_edit.php +++ b/templates/task_edit.php @@ -6,13 +6,11 @@ <form method="post" action="?controller=task&action=update" autocomplete="off"> <?= Helper\form_hidden('id', $values) ?> + <?= Helper\form_hidden('project_id', $values) ?> <?= Helper\form_label(t('Title'), 'title') ?> <?= Helper\form_text('title', $values, $errors, array('required')) ?><br/> - <?= Helper\form_label(t('Project'), 'project_id') ?> - <?= Helper\form_select('project_id', $projects_list, $values, $errors) ?><br/> - <?= Helper\form_label(t('Column'), 'column_id') ?> <?= Helper\form_select('column_id', $columns_list, $values, $errors) ?><br/> |