diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-31 21:21:09 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-31 21:21:09 -0400 |
commit | 0cb717f4407b81868d6b909d1d4ef4795c5e4b50 (patch) | |
tree | bf277f7bcf80e17be67206948c4900993d5edca6 /app/Template/analytic | |
parent | 3861e90336031873d7f6dc2f7476b5502af7d69f (diff) |
Replace all date fields by helper
Diffstat (limited to 'app/Template/analytic')
-rw-r--r-- | app/Template/analytic/burndown.php | 6 | ||||
-rw-r--r-- | app/Template/analytic/cfd.php | 6 | ||||
-rw-r--r-- | app/Template/analytic/lead_cycle_time.php | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/app/Template/analytic/burndown.php b/app/Template/analytic/burndown.php index e979595d..dfd77604 100644 --- a/app/Template/analytic/burndown.php +++ b/app/Template/analytic/burndown.php @@ -17,13 +17,11 @@ <?= $this->form->csrf() ?> <div class="form-inline-group"> - <?= $this->form->label(t('Start Date'), 'from') ?> - <?= $this->form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('Start date'), 'from', $values) ?> </div> <div class="form-inline-group"> - <?= $this->form->label(t('End Date'), 'to') ?> - <?= $this->form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('End date'), 'to', $values) ?> </div> <div class="form-inline-group"> diff --git a/app/Template/analytic/cfd.php b/app/Template/analytic/cfd.php index 8dfb5b00..89ded3ad 100644 --- a/app/Template/analytic/cfd.php +++ b/app/Template/analytic/cfd.php @@ -17,13 +17,11 @@ <?= $this->form->csrf() ?> <div class="form-inline-group"> - <?= $this->form->label(t('Start Date'), 'from') ?> - <?= $this->form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('Start date'), 'from', $values) ?> </div> <div class="form-inline-group"> - <?= $this->form->label(t('End Date'), 'to') ?> - <?= $this->form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('End date'), 'to', $values) ?> </div> <div class="form-inline-group"> diff --git a/app/Template/analytic/lead_cycle_time.php b/app/Template/analytic/lead_cycle_time.php index 2dccc136..ef595b79 100644 --- a/app/Template/analytic/lead_cycle_time.php +++ b/app/Template/analytic/lead_cycle_time.php @@ -21,13 +21,11 @@ <?= $this->form->csrf() ?> <div class="form-inline-group"> - <?= $this->form->label(t('Start Date'), 'from') ?> - <?= $this->form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('Start date'), 'from', $values) ?> </div> <div class="form-inline-group"> - <?= $this->form->label(t('End Date'), 'to') ?> - <?= $this->form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> + <?= $this->form->date(t('End date'), 'to', $values) ?> </div> <div class="form-inline-group"> |