Add sorting by start date for tasks list
This commit is contained in:
parent
baf3b31cf5
commit
eb972c07b7
|
|
@ -25,6 +25,9 @@
|
|||
<li>
|
||||
<?= $paginator->order(t('Due date'), \Kanboard\Model\TaskModel::TABLE.'.date_due') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $paginator->order(t('Start date'), \Kanboard\Model\TaskModel::TABLE.'.date_started') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $paginator->order(t('Status'), \Kanboard\Model\TaskModel::TABLE.'.is_active') ?>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -23,8 +23,15 @@
|
|||
</span>
|
||||
<?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'])): ?>
|
||||
<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'])): ?>
|
||||
task-date-today
|
||||
<?php elseif (time() > $task['date_due']): ?>
|
||||
|
|
@ -32,7 +39,7 @@
|
|||
<?php endif ?>
|
||||
">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
<?= $this->dt->date($task['date_due']) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue