2015-05-22 18:48:51 +00:00
|
|
|
<!-- <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'">
|
2014-04-06 10:35:34 +00:00
|
|
|
<div ng-repeat="list in lists | filter:filterLists()" class="grouped-tasks ui-droppable" rel="{{ list.id }}" oc-drop-task>
|
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>
|
|
|
|
<ol class="tasks">
|
2015-02-16 22:22:00 +00:00
|
|
|
<li ng-animate="'animate'" ng-repeat="task in tasks | filter:filterTasks(task,list.id) | filter:filterTasks(task,route.listID) | filter:filterTasksByString(task) | orderBy:sortDue | orderBy:'starred':true | orderBy:'completed_date':true"
|
2014-04-05 23:09:35 +00:00
|
|
|
class="task-item ui-draggable" rel="{{ task.id }}" ng-click="openDetails(task.id)" ng-class="{done: task.completed}" oc-drag-task stop-event="click">
|
2014-03-28 19:11:56 +00:00
|
|
|
<div class="task-body">
|
2014-07-11 20:50:01 +00:00
|
|
|
<div class="percentdone" style="width:{{ task.complete }}%; background-color:{{list.calendarcolor}};"></div>
|
2014-03-28 19:11:56 +00:00
|
|
|
<a class="task-checkbox" name="toggleCompleted" ng-click="toggleCompleted(task.id)" stop-event="click">
|
|
|
|
<span class="icon task-checkbox" ng-class="{'task-checked': task.completed}"></span>
|
|
|
|
</a>
|
|
|
|
<a class="icon task-separator"></a>
|
|
|
|
<a class="task-star" ng-click="toggleStarred(task.id)" stop-event="click">
|
|
|
|
<span class="icon task-star faded" ng-class="{'task-starred': task.starred}"></span>
|
|
|
|
</a>
|
2014-04-05 23:09:35 +00:00
|
|
|
<a class="duedate" ng-class="{overdue: TasksModel.overdue(task.due)}">{{ task.due | dateTaskList }}</a>
|
2014-03-28 19:11:56 +00:00
|
|
|
<div class="title-wrapper" ng-class="{attachment: task.note!=''}">
|
2014-04-05 23:09:35 +00:00
|
|
|
<span class="title">{{ task.name }}</span>
|
2014-03-28 19:11:56 +00:00
|
|
|
<span class="icon task-attachment"></span>
|
2015-05-25 17:46:03 +00:00
|
|
|
<span class="categories-list">
|
|
|
|
<ul>
|
|
|
|
<li ng-repeat="category in task.categories"><span>{{ category }}</span></li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
2014-03-28 19:11:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ol>
|
2014-11-06 21:17:51 +00:00
|
|
|
<div class="loadmore" ng-hide="loadedAll(list.id) || route.listID != 'completed'">
|
|
|
|
<span ng-click="getCompletedTasks(list.id)" stop-event="click"> <?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>
|