From 62827e6cf470449c117624058fb36ad94804bcc0 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 5 May 2020 14:25:42 +0200 Subject: Time tracking related plugins --- .../Template/analytic/spent_time_by_dates.php | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 plugins/TimeMachine/Template/analytic/spent_time_by_dates.php (limited to 'plugins/TimeMachine/Template/analytic/spent_time_by_dates.php') diff --git a/plugins/TimeMachine/Template/analytic/spent_time_by_dates.php b/plugins/TimeMachine/Template/analytic/spent_time_by_dates.php new file mode 100644 index 00000000..47fa657c --- /dev/null +++ b/plugins/TimeMachine/Template/analytic/spent_time_by_dates.php @@ -0,0 +1,100 @@ + + + + +
+ + $metric) : ?> + + + + + : format($userFormat) ?> -> format($userFormat) ?> + +
+ +
+ form->csrf() ?> + getTimestamp() ?> + getTimestamp() ?> + form->date(t('Start date'), 'from', $values) ?> + form->date(t('End date'), 'to', $values) ?> + modal->submitButtons(array('submitLabel' => t('Execute'))) ?> +
+ +

+ + isEmpty()): ?> +

+ isEmpty()): ?> + app->component('chart-project-analytics-spent-time-by-dates', array( + 'metrics' => $spentTime, + 'labelSpent' => t('Hours Spent'), + 'labelClosed' => t('Closed'), + 'labelOpen' => t('Open'), + )) ?> + + + + + + + + + + + getCollection() as $task): ?> + + + + + + + + + + + + +
order(t('Id'), 'tasks.id') ?>order(t('Categories'), 'tasks.category_id') ?>order(t('Swimlane'), 'tasks.swimlane_id') ?>order(t('Title'), 'tasks.title') ?>order(t('Status'), 'tasks.is_active') ?>order(t('Hours Spent'), 'tasks.time_spent') ?>
+ url->link('#'.$this->text->e($task['id']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + + text->e($categories[$task['category_id']]) ?> + + text->e($swimlanes[$task['swimlane_id']]) ?> + + url->link($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + + + + + + + + + + text->e($metrics[$task['id']][$isActive]['stt_time_spent']) ?> + + text->e($metrics[$task['id']][$isActive]['time_spent']) ?> +
+ + + -- cgit v1.2.3