diff options
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project/export_daily_summary.php | 26 | ||||
-rw-r--r-- | app/Template/project/export_tasks.php (renamed from app/Template/project_export.php) | 0 | ||||
-rw-r--r-- | app/Template/project_sidebar.php | 15 |
3 files changed, 38 insertions, 3 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.php b/app/Template/project/export_tasks.php index 02eb389f..02eb389f 100644 --- a/app/Template/project_export.php +++ b/app/Template/project/export_tasks.php diff --git a/app/Template/project_sidebar.php b/app/Template/project_sidebar.php index 7d6e0bfb..bd56edaf 100644 --- a/app/Template/project_sidebar.php +++ b/app/Template/project_sidebar.php @@ -7,9 +7,6 @@ <?php if (Helper\is_admin() || $project['is_private']): ?> <li> - <a href="?controller=project&action=export&project_id=<?= $project['id'] ?>"><?= t('Tasks Export') ?></a> - </li> - <li> <a href="?controller=project&action=share&project_id=<?= $project['id'] ?>"><?= t('Public access') ?></a> </li> <li> @@ -44,4 +41,16 @@ </li> <?php endif ?> </ul> + + <?php if (Helper\is_admin() || $project['is_private']): ?> + <h2><?= t('Exports') ?></h2> + <ul> + <li> + <?= Helper\a(t('Tasks'), 'project', 'exportTasks', array('project_id' => $project['id'])) ?> + </li> + <li> + <?= Helper\a(t('Daily project summary'), 'project', 'exportDailyProjectSummary', array('project_id' => $project['id'])) ?> + </li> + </li> + <?php endif ?> </div>
\ No newline at end of file |