Add sorting by start date for tasks list
This commit is contained in:
@@ -25,6 +25,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<?= $paginator->order(t('Due date'), \Kanboard\Model\TaskModel::TABLE.'.date_due') ?>
|
<?= $paginator->order(t('Due date'), \Kanboard\Model\TaskModel::TABLE.'.date_due') ?>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<?= $paginator->order(t('Start date'), \Kanboard\Model\TaskModel::TABLE.'.date_started') ?>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<?= $paginator->order(t('Status'), \Kanboard\Model\TaskModel::TABLE.'.is_active') ?>
|
<?= $paginator->order(t('Status'), \Kanboard\Model\TaskModel::TABLE.'.is_active') ?>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -23,8 +23,15 @@
|
|||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php if (! empty($task['date_started'])): ?>
|
||||||
|
<span title="<?= t('Start date') ?>" class="task-date">
|
||||||
|
<i class="fa fa-clock-o"></i>
|
||||||
|
<?= $this->dt->date($task['date_started']) ?>
|
||||||
|
</span>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (! empty($task['date_due'])): ?>
|
<?php if (! empty($task['date_due'])): ?>
|
||||||
<span class="task-date
|
<span title="<?= t('Due date') ?>" class="task-date
|
||||||
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
<?php if (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
|
||||||
task-date-today
|
task-date-today
|
||||||
<?php elseif (time() > $task['date_due']): ?>
|
<?php elseif (time() > $task['date_due']): ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user