summaryrefslogtreecommitdiff
path: root/app/Template/dashboard/project_tasks.php
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-04-08 14:01:28 +0200
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-04-08 14:01:28 +0200
commit0dfe48b7fa475aade00a8ccf42e3dba99dfa3702 (patch)
tree92d34a659a841c4d0036fa5ef23b2f2b425c4b4e /app/Template/dashboard/project_tasks.php
parenteca069dbd1318274b4170eb78629b0128dd0543c (diff)
"My tasks" view grops tasks by project - fixes #107
Diffstat (limited to 'app/Template/dashboard/project_tasks.php')
-rw-r--r--app/Template/dashboard/project_tasks.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/app/Template/dashboard/project_tasks.php b/app/Template/dashboard/project_tasks.php
new file mode 100644
index 00000000..1577f814
--- /dev/null
+++ b/app/Template/dashboard/project_tasks.php
@@ -0,0 +1,45 @@
+<div class="page-header">
+ <h2><?= $this->url->link(t('My tasks'), 'DashboardController', 'tasks', array('user_id' => $user['id'])) ?> (<?= $paginator->getTotal() ?>)</h2>
+</div>
+<?php if ($paginator->isEmpty()): ?>
+ <p class="alert"><?= t('There is nothing assigned to you.') ?></p>
+<?php else: ?>
+ <div class="table-list">
+ <?= $this->render('task_list/header', array(
+ 'paginator' => $paginator,
+ )) ?>
+
+ <?php foreach ($paginator->getCollection() as $task): ?>
+ <?= $this->render('task_list/task_project_name', array(
+ 'task' => $task
+ )) ?>
+ <div class="table-list-row color-<?= $task['color_id'] ?>">
+ <?= $this->render('task_list/task_title', array(
+ 'task' => $task,
+ 'redirect' => 'dashboard-tasks',
+ 'is_subtask' => FALSE
+ )) ?>
+
+ <?= $this->render('task_list/task_details', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_avatars', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_icons', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->render('task_list/task_subtasks', array(
+ 'task' => $task,
+ )) ?>
+
+ <?= $this->hook->render('template:dashboard:task:footer', array('task' => $task)) ?>
+ </div>
+ <?php endforeach ?>
+ </div>
+
+ <?= $paginator ?>
+<?php endif ?>