diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-04 21:14:57 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-04 21:14:57 -0500 |
commit | d1d04d6feeebeba2aea5333d7a4229fcec799f75 (patch) | |
tree | 51da4416973b2b60f3d50d5acddf2c4c258c1ff3 /app/Template/export | |
parent | 07b07c7697439dc0e6bdf87f65b4b3bd46f6bfc8 (diff) |
Add subtasks export and move export actions to a specific controller
Diffstat (limited to 'app/Template/export')
-rw-r--r-- | app/Template/export/subtasks.php | 24 | ||||
-rw-r--r-- | app/Template/export/summary.php | 26 | ||||
-rw-r--r-- | app/Template/export/tasks.php | 24 |
3 files changed, 74 insertions, 0 deletions
diff --git a/app/Template/export/subtasks.php b/app/Template/export/subtasks.php new file mode 100644 index 00000000..aa999a56 --- /dev/null +++ b/app/Template/export/subtasks.php @@ -0,0 +1,24 @@ +<div class="page-header"> + <h2> + <?= t('Subtasks exportation for "%s"', $project['name']) ?> + </h2> +</div> + +<form method="get" action="?" autocomplete="off"> + + <?= $this->formHidden('controller', $values) ?> + <?= $this->formHidden('action', $values) ?> + <?= $this->formHidden('project_id', $values) ?> + + <?= $this->formLabel(t('Start Date'), 'from') ?> + <?= $this->formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?><br/> + + <?= $this->formLabel(t('End Date'), 'to') ?> + <?= $this->formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + + <div class="form-help"><?= t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d')) ?></div> + + <div class="form-actions"> + <input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/> + </div> +</form>
\ No newline at end of file diff --git a/app/Template/export/summary.php b/app/Template/export/summary.php new file mode 100644 index 00000000..191d36b6 --- /dev/null +++ b/app/Template/export/summary.php @@ -0,0 +1,26 @@ +<div class="page-header"> + <h2> + <?= t('Daily project summary export for "%s"', $project['name']) ?> + </h2> +</div> + +<p class="alert alert-info"><?= t('This export contains the number of tasks per column grouped per day.') ?></p> + +<form method="get" action="?" autocomplete="off"> + + <?= $this->formHidden('controller', $values) ?> + <?= $this->formHidden('action', $values) ?> + <?= $this->formHidden('project_id', $values) ?> + + <?= $this->formLabel(t('Start Date'), 'from') ?> + <?= $this->formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?><br/> + + <?= $this->formLabel(t('End Date'), 'to') ?> + <?= $this->formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + + <div class="form-help"><?= t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d')) ?></div> + + <div class="form-actions"> + <input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/> + </div> +</form>
\ No newline at end of file diff --git a/app/Template/export/tasks.php b/app/Template/export/tasks.php new file mode 100644 index 00000000..e502085c --- /dev/null +++ b/app/Template/export/tasks.php @@ -0,0 +1,24 @@ +<div class="page-header"> + <h2> + <?= t('Tasks exportation for "%s"', $project['name']) ?> + </h2> +</div> + +<form method="get" action="?" autocomplete="off"> + + <?= $this->formHidden('controller', $values) ?> + <?= $this->formHidden('action', $values) ?> + <?= $this->formHidden('project_id', $values) ?> + + <?= $this->formLabel(t('Start Date'), 'from') ?> + <?= $this->formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?><br/> + + <?= $this->formLabel(t('End Date'), 'to') ?> + <?= $this->formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + + <div class="form-help"><?= t('Others formats accepted: %s and %s', date('Y-m-d'), date('Y_m_d')) ?></div> + + <div class="form-actions"> + <input type="submit" value="<?= t('Execute') ?>" class="btn btn-blue"/> + </div> +</form>
\ No newline at end of file |