tasks/templates/part.collectionall.php

30 lines
1.6 KiB
PHP
Raw Normal View History

<!-- <div ng-switch-when="starred || completed || all || today || current"> -->
<div ng-if="route.listID == 'starred' || route.listID == 'completed' || route.listID == 'all' || route.listID == 'today' || route.listID == 'current'">
2015-07-19 12:05:29 +00:00
<div ng-repeat="list in lists | filter:filterLists()" class="grouped-tasks ui-droppable" rel="{{ list.id }}">
2014-03-28 19:11:56 +00:00
<h2 class="heading">
2014-04-05 23:09:35 +00:00
<text>{{ list.displayname }}</text>
2014-03-28 19:11:56 +00:00
</h2>
2015-07-19 12:05:29 +00:00
<ol class="tasks"
listID="{{list.id}}"
collectionID="{{route.listID}}"
type="list"
dnd-list="draggedTasks"
dnd-drop="dropCallback(event, item, index)"
dnd-dragover="dragover(event, item, index)">
<li class="task-item ui-draggable handler"
taskID="{{task.id}}"
ng-animate="'animate'"
ng-repeat="task in filtered = filteredTasks() | filter:hasNoParent(task) | filter:filterTasks(task,list.id) | filter:filterTasks(task,route.listID) | orderBy:sortDue | orderBy:'priority':true | orderBy:'completed_date':true"
ng-click="openDetails(task.id,$event)"
ng-class="{done: task.completed}"
dnd-draggable="task"
dnd-effect-allowed="move">
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>
<div class="loadmore handler" ng-hide="loadedAll(list.id) || route.listID != 'completed'">
<span ng-click="getCompletedTasks(list.id)"> <?php p($l->t('Load remaining completed tasks.')); ?> </span>
</div>
2014-03-28 19:11:56 +00:00
</div>
2014-07-11 20:50:01 +00:00
</div>