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/export/subtasks.php | 14 +++++++------- app/Template/export/summary.php | 14 +++++++------- app/Template/export/tasks.php | 14 +++++++------- app/Template/export/transitions.php | 14 +++++++------- 4 files changed, 28 insertions(+), 28 deletions(-) (limited to 'app/Template/export') diff --git a/app/Template/export/subtasks.php b/app/Template/export/subtasks.php index aa999a56..d22b96a4 100644 --- a/app/Template/export/subtasks.php +++ b/app/Template/export/subtasks.php @@ -6,15 +6,15 @@
- formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
diff --git a/app/Template/export/summary.php b/app/Template/export/summary.php index 191d36b6..ffbd6ac2 100644 --- a/app/Template/export/summary.php +++ b/app/Template/export/summary.php @@ -8,15 +8,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
diff --git a/app/Template/export/tasks.php b/app/Template/export/tasks.php index e502085c..5c5e2172 100644 --- a/app/Template/export/tasks.php +++ b/app/Template/export/tasks.php @@ -6,15 +6,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
diff --git a/app/Template/export/transitions.php b/app/Template/export/transitions.php index 7cd190e0..bf6ef249 100644 --- a/app/Template/export/transitions.php +++ b/app/Template/export/transitions.php @@ -8,15 +8,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
+ form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
-- cgit v1.2.3