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/edit.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/Template/comment/edit.php') diff --git a/app/Template/comment/edit.php b/app/Template/comment/edit.php index 2785fe62..d67aa387 100644 --- a/app/Template/comment/edit.php +++ b/app/Template/comment/edit.php @@ -2,12 +2,12 @@

-
+ - formCsrf() ?> - formHidden('id', $values) ?> - formHidden('task_id', $values) ?> - formHidden('user_id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?>
    @@ -19,7 +19,7 @@
- formTextarea('comment', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?> + form->textarea('comment', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?>
@@ -31,6 +31,6 @@
- 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