form->csrf() ?>
form->label(t('Title'), 'title') ?> form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"', 'tabindex="1"'), 'form-input-large') ?> form->label(t('Description'), 'description') ?>
form->textarea( 'description', $values, $errors, array( 'placeholder="'.t('Leave a description').'"', 'tabindex="2"', 'data-mention-search-url="'.$this->url->href('UserHelper', 'mention', array('project_id' => $values['project_id'])).'"' ) ) ?>
render('task/color_picker', array('colors_list' => $colors_list, 'values' => $values)) ?> form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?>
form->hidden('project_id', $values) ?> form->label(t('Assignee'), 'owner_id') ?> form->select('owner_id', $users_list, $values, $errors, array('tabindex="3"')) ?> form->label(t('Category'), 'category_id') ?> form->select('category_id', $categories_list, $values, $errors, array('tabindex="4"')) ?> form->label(t('Swimlane'), 'swimlane_id') ?> form->select('swimlane_id', $swimlanes_list, $values, $errors, array('tabindex="5"')) ?> form->label(t('Column'), 'column_id') ?> form->select('column_id', $columns_list, $values, $errors, array('tabindex="6"')) ?> task->selectPriority($project, $values) ?> form->label(t('Complexity'), 'score') ?> form->number('score', $values, $errors, array('tabindex="9"')) ?> form->label(t('Original estimate'), 'time_estimated') ?> form->numeric('time_estimated', $values, $errors, array('tabindex="10"')) ?> form->label(t('Due Date'), 'date_due') ?> form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"', 'tabindex="11"'), 'form-date') ?>
url->link(t('cancel'), 'board', 'show', array('project_id' => $values['project_id']), false, 'close-popover') ?>