Add task dropdown menu on listing pages

This commit is contained in:
Frederic Guillot
2016-02-05 20:30:54 -05:00
parent 9840fa8e07
commit de5fa17d60
6 changed files with 9 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
<?php else: ?>
<table class="table-fixed table-small">
<tr>
<th class="column-8"><?= $paginator->order('Id', 'tasks.id') ?></th>
<th class="column-5"><?= $paginator->order('Id', 'tasks.id') ?></th>
<th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
<th><?= $paginator->order(t('Task'), 'title') ?></th>
<th class="column-20"><?= t('Time tracking') ?></th>
@@ -15,7 +15,7 @@
<?php foreach ($paginator->getCollection() as $task): ?>
<tr>
<td class="task-table color-<?= $task['color_id'] ?>">
<?= $this->url->link('#'.$task['id'], 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
<?= $this->render('task/dropdown', array('task' => $task)) ?>
</td>
<td>
<?= $this->url->link($this->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?>