Add task dropdown menu on listing pages
This commit is contained in:
@@ -19,6 +19,7 @@ New features:
|
|||||||
* Add automatic actions to close tasks with no activity
|
* Add automatic actions to close tasks with no activity
|
||||||
* Add automatic actions to send an email when there is no activity on a task
|
* Add automatic actions to send an email when there is no activity on a task
|
||||||
* Regroup all daily background tasks in one command: "cronjob"
|
* Regroup all daily background tasks in one command: "cronjob"
|
||||||
|
* Add task dropdown menu on listing pages
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<table class="table-fixed table-small">
|
<table class="table-fixed table-small">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="column-10"><?= $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 class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
|
||||||
<th><?= $paginator->order(t('Task'), 'task_name') ?></th>
|
<th><?= $paginator->order(t('Task'), 'task_name') ?></th>
|
||||||
<th><?= $paginator->order(t('Subtask'), 'title') ?></th>
|
<th><?= $paginator->order(t('Subtask'), 'title') ?></th>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<?php foreach ($paginator->getCollection() as $subtask): ?>
|
<?php foreach ($paginator->getCollection() as $subtask): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="task-table color-<?= $subtask['color_id'] ?>">
|
<td class="task-table color-<?= $subtask['color_id'] ?>">
|
||||||
<?= $this->url->link('#'.$subtask['task_id'], 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?>
|
<?= $this->render('task/dropdown', array('task' => array('id' => $subtask['task_id'], 'project_id' => $subtask['project_id']))) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->url->link($this->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?>
|
<?= $this->url->link($this->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<table class="table-fixed table-small">
|
<table class="table-fixed table-small">
|
||||||
<tr>
|
<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 class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
|
||||||
<th><?= $paginator->order(t('Task'), 'title') ?></th>
|
<th><?= $paginator->order(t('Task'), 'title') ?></th>
|
||||||
<th class="column-20"><?= t('Time tracking') ?></th>
|
<th class="column-20"><?= t('Time tracking') ?></th>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<?php foreach ($paginator->getCollection() as $task): ?>
|
<?php foreach ($paginator->getCollection() as $task): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="task-table color-<?= $task['color_id'] ?>">
|
<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>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->url->link($this->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?>
|
<?= $this->url->link($this->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
<?php if (! $not_editable && ! empty($column['description'])): ?>
|
<?php if (! $not_editable && ! empty($column['description'])): ?>
|
||||||
<span class="tooltip pull-right" title='<?= $this->e($this->text->markdown($column['description'])) ?>'>
|
<span class="tooltip pull-right" title='<?= $this->e($this->text->markdown($column['description'])) ?>'>
|
||||||
<i class="fa fa-info-circle"></i>
|
<i class="fa fa-info-circle"></i>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
'filters' => $filters,
|
'filters' => $filters,
|
||||||
)) ?>
|
)) ?>
|
||||||
|
|
||||||
<?php if (! empty($values['search']) && $paginator->isEmpty()): ?>
|
<?php if ($paginator->isEmpty()): ?>
|
||||||
<p class="alert"><?= t('No tasks found.') ?></p>
|
<p class="alert"><?= t('No tasks found.') ?></p>
|
||||||
<?php elseif (! $paginator->isEmpty()): ?>
|
<?php elseif (! $paginator->isEmpty()): ?>
|
||||||
<table class="table-fixed table-small">
|
<table class="table-fixed table-small">
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<?php foreach ($paginator->getCollection() as $task): ?>
|
<?php foreach ($paginator->getCollection() as $task): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="task-table color-<?= $task['color_id'] ?>">
|
<td class="task-table color-<?= $task['color_id'] ?>">
|
||||||
<?= $this->url->link('#'.$this->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?>
|
<?= $this->render('task/dropdown', array('task' => $task)) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->e($task['swimlane_name'] ?: $task['default_swimlane']) ?>
|
<?= $this->e($task['swimlane_name'] ?: $task['default_swimlane']) ?>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?= $this->hook->render('template:task:menu:actions') ?>
|
<?= $this->hook->render('template:task:menu') ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user