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/task/time.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/Template/task/time.php') diff --git a/app/Template/task/time.php b/app/Template/task/time.php index 4aeddc70..6682a08d 100644 --- a/app/Template/task/time.php +++ b/app/Template/task/time.php @@ -1,15 +1,15 @@ -
- formCsrf() ?> - formHidden('id', $values) ?> + + form->csrf() ?> + form->hidden('id', $values) ?> - formLabel(t('Start date'), 'date_started') ?> - formText('date_started', $values, array(), array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('Start date'), 'date_started') ?> + form->text('date_started', $values, array(), array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> - formLabel(t('Time estimated'), 'time_estimated') ?> - formNumeric('time_estimated', $values, array(), array('placeholder="'.t('hours').'"')) ?> + form->label(t('Time estimated'), 'time_estimated') ?> + form->numeric('time_estimated', $values, array(), array('placeholder="'.t('hours').'"')) ?> - formLabel(t('Time spent'), 'time_spent') ?> - formNumeric('time_spent', $values, array(), array('placeholder="'.t('hours').'"')) ?> + form->label(t('Time spent'), 'time_spent') ?> + form->numeric('time_spent', $values, array(), array('placeholder="'.t('hours').'"')) ?>
\ No newline at end of file -- cgit v1.2.3