Remove project dropdown from task edit

This commit is contained in:
Frédéric Guillot 2014-02-23 21:24:03 -05:00
parent 4b7a72e931
commit f69cb9f466
2 changed files with 1 additions and 5 deletions

View File

@ -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(),

View File

@ -6,13 +6,11 @@
<form method="post" action="?controller=task&amp;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/>