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/hourlyrate/index.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'app/Template/hourlyrate/index.php') diff --git a/app/Template/hourlyrate/index.php b/app/Template/hourlyrate/index.php index 9d0b77c8..af305d07 100644 --- a/app/Template/hourlyrate/index.php +++ b/app/Template/hourlyrate/index.php @@ -17,7 +17,7 @@ - a(t('Remove'), 'hourlyrate', 'confirm', array('user_id' => $user['id'], 'rate_id' => $rate['id'])) ?> + url->link(t('Remove'), 'hourlyrate', 'confirm', array('user_id' => $user['id'], 'rate_id' => $rate['id'])) ?> @@ -26,19 +26,19 @@

-
+ - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Hourly rate'), 'rate') ?> - formText('rate', $values, $errors, array('required'), 'form-numeric') ?> + form->label(t('Hourly rate'), 'rate') ?> + form->text('rate', $values, $errors, array('required'), 'form-numeric') ?> - formLabel(t('Currency'), 'currency') ?> - formSelect('currency', $currencies_list, $values, $errors, array('required')) ?> + form->label(t('Currency'), 'currency') ?> + form->select('currency', $currencies_list, $values, $errors, array('required')) ?> - formLabel(t('Effective date'), 'date_effective') ?> - formText('date_effective', $values, $errors, array('required'), 'form-date') ?> + form->label(t('Effective date'), 'date_effective') ?> + form->text('date_effective', $values, $errors, array('required'), 'form-date') ?>
-- cgit v1.2.3