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/comment/create.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/Template/comment/create.php') diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php index 5bd8debc..8c66d9a4 100644 --- a/app/Template/comment/create.php +++ b/app/Template/comment/create.php @@ -2,10 +2,10 @@

-
- formCsrf() ?> - formHidden('task_id', $values) ?> - formHidden('user_id', $values) ?> + + form->csrf() ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?>
    @@ -17,7 +17,7 @@
- formTextarea('comment', $values, $errors, array(! isset($skip_cancel) ? 'autofocus' : '', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?> + form->textarea('comment', $values, $errors, array(! isset($skip_cancel) ? 'autofocus' : '', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?>
@@ -31,9 +31,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> - 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