2014-07-30 23:03:54 +04:00
|
|
|
<div ng-app="Tasks" ng-cloak ng-controller="AppController" ng-click="closeAll()" id="tasks_wrapper">
|
2014-07-26 12:24:31 +04:00
|
|
|
<div id="app-navigation" ng-controller="ListController">
|
2015-02-16 00:34:15 +03:00
|
|
|
<div id="task_lists_header" class="header">
|
2014-03-28 23:11:56 +04:00
|
|
|
<div id="main-toolbar">
|
2014-05-06 22:12:03 +04:00
|
|
|
<a id="loading" ng-click="update()" stop-event="click">
|
2014-03-28 23:11:56 +04:00
|
|
|
<span class="loading" ng-class="{'done':!isLoading()}"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="task_lists_scroll" class="scroll">
|
|
|
|
<ul id="collection_filters">
|
2014-04-06 03:09:35 +04:00
|
|
|
<li ng-repeat="collection in collections" id="collection_{{ collection.id }}" rel="{{ collection.id }}"
|
2014-05-27 21:59:35 +04:00
|
|
|
ng-class="{'animate-up': hideCollection(collection.id), active: collection.id==route.listID}" oc-drop-task>
|
2014-04-06 03:09:35 +04:00
|
|
|
<a href="#/lists/{{ collection.id }}">
|
2014-04-19 22:28:22 +04:00
|
|
|
<span class="icon collection-{{ collection.id }}"><text ng-show="collection.id=='today'"><?php p($_['DOM']); ?></text></span>
|
2014-04-06 03:09:35 +04:00
|
|
|
<span class="count">{{ getCollectionString(collection.id) }}</span>
|
|
|
|
<span class="title"><text>{{ collection.displayname }}</text></span>
|
2014-03-28 23:11:56 +04:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul id="collection_lists">
|
2014-04-06 03:09:35 +04:00
|
|
|
<li ng-repeat="list in lists" id="list_{{ list.id }}" rel="{{ list.id }}" ng-class="{active: list.id==route.listID}" oc-drop-task>
|
2014-04-19 22:28:22 +04:00
|
|
|
<a href="#/lists/{{ list.id }}" style="border-right: 4px solid {{ list.calendarcolor }};">
|
2014-03-28 23:11:56 +04:00
|
|
|
<span class="icon list-list"></span>
|
2014-04-06 03:09:35 +04:00
|
|
|
<span class="count"><text ng-show="getListCount(list.id,'all')">{{ getListCount(list.id,'all') }}</text></span>
|
|
|
|
<span class="title"><text ng-dblclick="editName(list.id)" oc-click-focus="{selector: 'input.edit', timeout: 0}">{{ list.displayname }}</text></span>
|
2014-03-28 23:11:56 +04:00
|
|
|
</a>
|
|
|
|
<input ng-model="list.displayname" class="edit" type="text" ng-show="route.listparameter=='name' && route.listID == list.id" stop-event="click"
|
|
|
|
ng-keydown="checkName($event)">
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<a class="addlist" ng-click="startAddingList()" stop-event="click" oc-click-focus="{selector: '#newList', timeout: 0}">
|
|
|
|
<span class="icon detail-add"></span>
|
2014-04-06 03:09:35 +04:00
|
|
|
<span class="title"><text><?php p($l->t('Add List...')); ?></text></span>
|
2014-03-28 23:11:56 +04:00
|
|
|
<input id="newList" ng-model="status.newListName" class="edit" type="text" ng-disabled="isAddingList" ng-show="status.addingList"
|
2014-04-06 03:09:35 +04:00
|
|
|
stop-event="click" placeholder="<?php p($l->t('New List')); ?>" ng-keydown="checkListInput($event)" />
|
2014-03-28 23:11:56 +04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div id="task_lists_footer" class="footer">
|
|
|
|
<a class="delete" ng-click="deleteList(route.listID)" ng-show="showDelete(route.listID)">
|
|
|
|
<span class="icon detail-trash"></span>
|
|
|
|
</a>
|
2014-05-27 21:59:35 +04:00
|
|
|
<a class="settings" ng-click="showSettings()" stop-event="click">
|
|
|
|
<span class="icon detail-settings"></span>
|
|
|
|
</a>
|
2014-03-28 23:11:56 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-26 12:24:31 +04:00
|
|
|
<div id="app-content" ng-controller="TasksController" ng-class="{'details-visible':route.taskID}">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div id="add-task" class="add-task" ng-show="showInput()" ng-class="{'focus':status.focusTaskInput}" stop-event="click" >
|
|
|
|
<a class="input-star">
|
|
|
|
<span class="icon input-star "></span>
|
|
|
|
</a>
|
|
|
|
<a class="input-date">
|
|
|
|
<span class="icon input-date"></span>
|
|
|
|
</a>
|
|
|
|
<form ng-submit="addTask(taskName)" name="addTaskForm">
|
|
|
|
<input id="target" ng-disabled="isAddingTask" ng-click="focusInput()" class="transparent" placeholder="{{ getAddString() }}" ng-model="taskName"
|
|
|
|
ng-keydown="checkTaskInput($event)"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="task-list" ng-class="{'completed-hidden':!settingsmodel.getById('various').showHidden}" ng-switch="route.listID">
|
|
|
|
<?php print_unescaped($this->inc('part.tasklist')); ?>
|
|
|
|
<?php print_unescaped($this->inc('part.collectionall')); ?>
|
|
|
|
<?php print_unescaped($this->inc('part.collectionweek')); ?>
|
2015-02-16 00:38:06 +03:00
|
|
|
<div id="searchresults" stop-event="click"></div>
|
2014-07-26 12:24:31 +04:00
|
|
|
</div>
|
2014-03-28 23:11:56 +04:00
|
|
|
</div>
|
2015-02-08 22:13:16 +03:00
|
|
|
<div id="task-details" ng-class="{'details-visible':route.taskID}">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<?php print_unescaped($this->inc('part.details')); ?>
|
|
|
|
</div>
|
2014-03-28 23:11:56 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-27 21:59:35 +04:00
|
|
|
<script type="text/ng-template" id="part.settings.html">
|
|
|
|
<?php print_unescaped($this->inc('part.settings')); ?>
|
|
|
|
</script>
|
2014-03-28 23:11:56 +04:00
|
|
|
</div>
|