- = $this->formTextarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?>
+ = $this->form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?>
- = $this->formHidden('project_id', $values) ?>
+ = $this->form->hidden('project_id', $values) ?>
- = $this->formLabel(t('Assignee'), 'owner_id') ?>
- = $this->formSelect('owner_id', $users_list, $values, $errors) ?>
+ = $this->form->label(t('Assignee'), 'owner_id') ?>
+ = $this->form->select('owner_id', $users_list, $values, $errors) ?>
- = $this->formLabel(t('Category'), 'category_id') ?>
- = $this->formSelect('category_id', $categories_list, $values, $errors) ?>
+ = $this->form->label(t('Category'), 'category_id') ?>
+ = $this->form->select('category_id', $categories_list, $values, $errors) ?>
- = $this->formLabel(t('Swimlane'), 'swimlane_id') ?>
- = $this->formSelect('swimlane_id', $swimlanes_list, $values, $errors) ?>
+ = $this->form->label(t('Swimlane'), 'swimlane_id') ?>
+ = $this->form->select('swimlane_id', $swimlanes_list, $values, $errors) ?>
- = $this->formLabel(t('Column'), 'column_id') ?>
- = $this->formSelect('column_id', $columns_list, $values, $errors) ?>
+ = $this->form->label(t('Column'), 'column_id') ?>
+ = $this->form->select('column_id', $columns_list, $values, $errors) ?>
- = $this->formLabel(t('Color'), 'color_id') ?>
- = $this->formSelect('color_id', $colors_list, $values, $errors) ?>
+ = $this->form->label(t('Color'), 'color_id') ?>
+ = $this->form->select('color_id', $colors_list, $values, $errors) ?>
- = $this->formLabel(t('Complexity'), 'score') ?>
- = $this->formNumber('score', $values, $errors) ?>
+ = $this->form->label(t('Complexity'), 'score') ?>
+ = $this->form->number('score', $values, $errors) ?>
- = $this->formLabel(t('Original estimate'), 'time_estimated') ?>
- = $this->formNumeric('time_estimated', $values, $errors) ?> = t('hours') ?>
+ = $this->form->label(t('Original estimate'), 'time_estimated') ?>
+ = $this->form->numeric('time_estimated', $values, $errors) ?> = t('hours') ?>
- = $this->formLabel(t('Due Date'), 'date_due') ?>
- = $this->formText('date_due', $values, $errors, array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ = $this->form->label(t('Due Date'), 'date_due') ?>
+ = $this->form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
= t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d')) ?>
diff --git a/app/Template/task/open.php b/app/Template/task/open.php
index 1fcdcd80..fbcc1111 100644
--- a/app/Template/task/open.php
+++ b/app/Template/task/open.php
@@ -8,8 +8,8 @@
- = $this->a(t('Yes'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ = $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>