Adds task column in 'my tasks' table on dasboard
This commit is contained in:
parent
dc6176fca2
commit
454f47a94a
|
|
@ -73,9 +73,11 @@ class TaskFinder extends Base
|
|||
'tasks.time_estimated',
|
||||
'tasks.is_active',
|
||||
'tasks.creator_id',
|
||||
'projects.name AS project_name'
|
||||
'projects.name AS project_name',
|
||||
'columns.title AS column_title'
|
||||
)
|
||||
->join(Project::TABLE, 'id', 'project_id')
|
||||
->join(Column::TABLE, 'id', 'column_id')
|
||||
->eq(Task::TABLE.'.owner_id', $user_id)
|
||||
->eq(Task::TABLE.'.is_active', Task::STATUS_OPEN)
|
||||
->eq(Project::TABLE.'.is_active', Project::ACTIVE);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<th><?= $paginator->order(t('Task'), 'title') ?></th>
|
||||
<th class="column-5"><?= $paginator->order('Priority', 'tasks.priority') ?></th>
|
||||
<th class="column-20"><?= t('Time tracking') ?></th>
|
||||
<th class="column-20"><?= $paginator->order(t('Due date'), 'date_due') ?></th>
|
||||
<th class="column-10"><?= $paginator->order(t('Due date'), 'date_due') ?></th>
|
||||
<th class="column-10"><?= $paginator->order(t('Column'), 'column_title') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($paginator->getCollection() as $task): ?>
|
||||
<tr>
|
||||
|
|
@ -41,6 +42,9 @@
|
|||
<td>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->text->e($task['column_title']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in New Issue