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/link/edit.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'app/Template/link/edit.php') diff --git a/app/Template/link/edit.php b/app/Template/link/edit.php index d9ce280c..516de464 100644 --- a/app/Template/link/edit.php +++ b/app/Template/link/edit.php @@ -2,20 +2,20 @@

-
+ - formCsrf() ?> - formHidden('id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> - formLabel(t('Label'), 'label') ?> - formText('label', $values, $errors, array('required')) ?> + form->label(t('Label'), 'label') ?> + form->text('label', $values, $errors, array('required')) ?> - formLabel(t('Opposite label'), 'opposite_id') ?> - formSelect('opposite_id', $labels, $values, $errors) ?> + form->label(t('Opposite label'), 'opposite_id') ?> + form->select('opposite_id', $labels, $values, $errors) ?>
- a(t('cancel'), 'link', 'index') ?> + url->link(t('cancel'), 'link', 'index') ?>
\ No newline at end of file -- cgit v1.2.3