2015-05-22 18:48:51 +00:00
|
|
|
<!-- <div ng-switch-when="starred || completed || all || today || current"> -->
|
2016-03-06 14:04:10 +00:00
|
|
|
<div ng-if="route.collectionID == 'starred' || route.collectionID == 'completed' || route.collectionID == 'all' || route.collectionID == 'today' || route.collectionID == 'current'">
|
|
|
|
<div ng-repeat="calendar in calendars | filter:filterLists()" class="grouped-tasks ui-droppable" rel="{{ calendar.uri }}">
|
2014-03-28 19:11:56 +00:00
|
|
|
<h2 class="heading">
|
2016-03-06 14:04:10 +00:00
|
|
|
<text>{{ calendar.displayname }}</text>
|
2014-03-28 19:11:56 +00:00
|
|
|
</h2>
|
2015-07-19 12:05:29 +00:00
|
|
|
<ol class="tasks"
|
2016-03-06 14:04:10 +00:00
|
|
|
calendarID="{{calendar.uri}}"
|
|
|
|
collectionID="{{route.collectionID}}"
|
2015-07-19 12:05:29 +00:00
|
|
|
type="list"
|
|
|
|
dnd-list="draggedTasks"
|
2016-03-14 13:52:24 +00:00
|
|
|
dnd-drop="dropAsRootTask(event, item, index)"
|
2016-03-15 21:15:38 +00:00
|
|
|
dnd-dragover="dragover(event, index)">
|
2015-07-19 12:05:29 +00:00
|
|
|
<li class="task-item ui-draggable handler"
|
2016-03-06 14:04:10 +00:00
|
|
|
taskID="{{task.uri}}"
|
2015-07-19 12:05:29 +00:00
|
|
|
ng-animate="'animate'"
|
2016-09-01 23:19:26 +00:00
|
|
|
ng-repeat="task in filtered = filteredTasks() | filter:hasNoParent(task) | filter:filterTasks(task,calendar.uri) | filter:filterTasks(task,route.collectionID) | orderBy:getSortOrder():settingsmodel.getById('various').sortDirection"
|
2016-03-06 14:04:10 +00:00
|
|
|
ng-click="openDetails(task.uri,$event)"
|
2015-07-19 12:05:29 +00:00
|
|
|
ng-class="{done: task.completed}"
|
|
|
|
dnd-draggable="task"
|
2016-03-16 20:34:43 +00:00
|
|
|
dnd-dragstart="dragStart(event)"
|
|
|
|
dnd-dragend="dragEnd(event)"
|
2016-03-15 21:48:16 +00:00
|
|
|
dnd-effect-allowed="{{ allow(task) }}">
|
2015-06-21 11:25:21 +00:00
|
|
|
<?php print_unescaped($this->inc('part.taskbody')); ?>
|
2014-03-28 19:11:56 +00:00
|
|
|
</li>
|
|
|
|
</ol>
|
2016-05-15 13:28:25 +00:00
|
|
|
<div class="loadmore handler" ng-hide="loadedCompleted(calendar.uri) || route.collectionID != 'completed'">
|
2016-03-06 14:04:10 +00:00
|
|
|
<span ng-click="getCompletedTasks(calendar.uri)"> <?php p($l->t('Load remaining completed tasks.')); ?> </span>
|
2014-11-06 21:17:51 +00:00
|
|
|
</div>
|
2014-03-28 19:11:56 +00:00
|
|
|
</div>
|
2014-07-11 20:50:01 +00:00
|
|
|
</div>
|