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/tasklink/edit.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/Template/tasklink/edit.php') diff --git a/app/Template/tasklink/edit.php b/app/Template/tasklink/edit.php index 37c3cb14..73b43277 100644 --- a/app/Template/tasklink/edit.php +++ b/app/Template/tasklink/edit.php @@ -2,18 +2,18 @@

-
+ - formCsrf() ?> - formHidden('id', $values) ?> - formHidden('task_id', $values) ?> - formHidden('opposite_task_id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> + form->hidden('task_id', $values) ?> + form->hidden('opposite_task_id', $values) ?> - formLabel(t('Label'), 'link_id') ?> - formSelect('link_id', $labels, $values, $errors) ?> + form->label(t('Label'), 'link_id') ?> + form->select('link_id', $labels, $values, $errors) ?> - formLabel(t('Task'), 'title') ?> - formText( + form->label(t('Task'), 'title') ?> + form->text( 'title', $values, $errors, @@ -22,13 +22,13 @@ 'placeholder="'.t('Start to type task title...').'"', 'title="'.t('Start to type task title...').'"', 'data-dst-field="opposite_task_id"', - 'data-search-url="'.$this->u('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', + 'data-search-url="'.$this->url->href('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', ), 'task-autocomplete') ?>
- 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'])) ?>
\ No newline at end of file -- cgit v1.2.3