tasks/templates/part.collectionall.php

32 lines
1.8 KiB
PHP
Raw Normal View History

<!-- <div ng-switch-when="starred || completed || all || today || current"> -->
<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">
<text>{{ calendar.displayname }}</text>
2014-03-28 19:11:56 +00:00
</h2>
2015-07-19 12:05:29 +00:00
<ol class="tasks"
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"
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"
ng-click="openDetails(task.uri,$event)"
2015-07-19 12:05:29 +00:00
ng-class="{done: task.completed}"
dnd-draggable="task"
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'">
<span ng-click="getCompletedTasks(calendar.uri)"> <?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>