From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Template/task/edit.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'app/Template/task/edit.php') diff --git a/app/Template/task/edit.php b/app/Template/task/edit.php index f9ac2b20..2900b739 100644 --- a/app/Template/task/edit.php +++ b/app/Template/task/edit.php @@ -2,16 +2,16 @@

-
+ - formCsrf() ?> + form->csrf() ?>
- formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('required', 'maxlength="200"')) ?>
+ form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('required', 'maxlength="200"')) ?>
- formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
    @@ -23,7 +23,7 @@
- formTextarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?> + form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?>
@@ -35,23 +35,23 @@
- formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Assignee'), 'owner_id') ?> - formSelect('owner_id', $users_list, $values, $errors) ?>
+ form->label(t('Assignee'), 'owner_id') ?> + form->select('owner_id', $users_list, $values, $errors) ?>
- formLabel(t('Category'), 'category_id') ?> - formSelect('category_id', $categories_list, $values, $errors) ?>
+ form->label(t('Category'), 'category_id') ?> + form->select('category_id', $categories_list, $values, $errors) ?>
- formLabel(t('Color'), 'color_id') ?> - formSelect('color_id', $colors_list, $values, $errors) ?>
+ form->label(t('Color'), 'color_id') ?> + form->select('color_id', $colors_list, $values, $errors) ?>
- formLabel(t('Complexity'), 'score') ?> - formNumber('score', $values, $errors) ?>
+ form->label(t('Complexity'), 'score') ?> + form->number('score', $values, $errors) ?>
- formLabel(t('Due Date'), 'date_due') ?> - formText('date_due', $values, $errors, array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ form->label(t('Due Date'), 'date_due') ?> + form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
@@ -59,9 +59,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> - a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
-- cgit v1.2.3