summaryrefslogtreecommitdiff
path: root/app/Template/project
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-16 21:36:46 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-16 21:36:46 -0500
commitd4ae2f135dd8ef3e5d5b09e29d21396f626f0dd7 (patch)
tree50fc3749129f98fc660a8a0248ab34eb13699af5 /app/Template/project
parent1e466a66dbb6e060b2fc7c0c5d3edb2b19079e4a (diff)
Add daily project summary export
Diffstat (limited to 'app/Template/project')
-rw-r--r--app/Template/project/export_daily_summary.php26
-rw-r--r--app/Template/project/export_tasks.php24
2 files changed, 50 insertions, 0 deletions
diff --git a/app/Template/project/export_daily_summary.php b/app/Template/project/export_daily_summary.php
new file mode 100644
index 00000000..763cd81c
--- /dev/null
+++ b/app/Template/project/export_daily_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">
+
+ <?= Helper\form_hidden('controller', $values) ?>
+ <?= Helper\form_hidden('action', $values) ?>
+ <?= Helper\form_hidden('project_id', $values) ?>
+
+ <?= Helper\form_label(t('Start Date'), 'from') ?>
+ <?= Helper\form_text('from', $values, $errors, array('required', 'placeholder="'.Helper\in_list($date_format, $date_formats).'"'), 'form-date') ?><br/>
+
+ <?= Helper\form_label(t('End Date'), 'to') ?>
+ <?= Helper\form_text('to', $values, $errors, array('required', 'placeholder="'.Helper\in_list($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/project/export_tasks.php b/app/Template/project/export_tasks.php
new file mode 100644
index 00000000..02eb389f
--- /dev/null
+++ b/app/Template/project/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">
+
+ <?= Helper\form_hidden('controller', $values) ?>
+ <?= Helper\form_hidden('action', $values) ?>
+ <?= Helper\form_hidden('project_id', $values) ?>
+
+ <?= Helper\form_label(t('Start Date'), 'from') ?>
+ <?= Helper\form_text('from', $values, $errors, array('required', 'placeholder="'.Helper\in_list($date_format, $date_formats).'"'), 'form-date') ?><br/>
+
+ <?= Helper\form_label(t('End Date'), 'to') ?>
+ <?= Helper\form_text('to', $values, $errors, array('required', 'placeholder="'.Helper\in_list($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