2016-03-08 22:39:04 +00:00
|
|
|
<?php
|
2017-11-02 21:01:04 +00:00
|
|
|
script('tasks', 'merged');
|
2016-08-02 18:30:40 +00:00
|
|
|
style('tasks', 'style');
|
2016-03-08 22:39:04 +00:00
|
|
|
?>
|
|
|
|
|
2018-08-06 19:59:27 +00:00
|
|
|
<div id="app-navigation" ng-controller="ListController">
|
|
|
|
<ul id="collections">
|
|
|
|
<li id="collection_{{ collection.id }}"
|
|
|
|
class="collection {{ collection.icon }} reactive"
|
|
|
|
collectionID="{{collection.id}}"
|
|
|
|
ng-repeat="collection in collections"
|
|
|
|
ng-class="{'animate-up': hideCollection(collection.id), active: collection.id==route.collectionID}"
|
|
|
|
dnd-list="draggedTasks"
|
|
|
|
dnd-drop="dropCollection(event, index, item)"
|
|
|
|
dnd-dragover="dragoverCollection(event, index)">
|
|
|
|
<a href="#/collections/{{ collection.id }}" class="sprite">
|
|
|
|
<span class="date" ng-if="collection.id=='today'"><?php p($_['DOM']); ?></span>
|
|
|
|
<span class="title">{{ collection.displayname }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="app-navigation-entry-utils">
|
2015-05-13 13:15:31 +00:00
|
|
|
<ul>
|
2018-08-06 19:59:27 +00:00
|
|
|
<li class="app-navigation-entry-utils-counter">{{ getCollectionString(collection.id) | counterFormatter }}</li>
|
2015-05-13 13:15:31 +00:00
|
|
|
</ul>
|
2015-05-13 12:22:16 +00:00
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
</li>
|
|
|
|
<li id="list_{{ calendar.uri }}"
|
|
|
|
class="list with-menu handler editing"
|
|
|
|
calendarID="{{calendar.uri}}"
|
|
|
|
ng-repeat="calendar in calendars"
|
|
|
|
ng-class="{ active: calendar.uri==route.calendarID, edit:route.listparameter == 'name' && route.calendarID == calendar.uri,
|
|
|
|
caldav: route.listparameter == 'caldav' && route.calendarID == calendar.uri}"
|
|
|
|
dnd-list="draggedTasks"
|
|
|
|
dnd-drop="dropList(event, index, item)"
|
|
|
|
dnd-dragover="dragoverList(event, index)">
|
|
|
|
<div class="app-navigation-entry-bullet" style="background-color: {{ calendar.color }};"></div>
|
|
|
|
<a href="#/calendars/{{ calendar.uri }}" ng-dblclick="startRename(calendar)">
|
|
|
|
<span class="title">{{ calendar.displayname }}</span>
|
|
|
|
</a>
|
2016-08-30 21:42:19 +00:00
|
|
|
<div class="app-navigation-entry-utils">
|
2018-08-06 19:59:27 +00:00
|
|
|
<ul>
|
|
|
|
<li class="app-navigation-entry-utils-counter">{{ getListCount(calendar.uri,'all') | counterFormatter }}</li>
|
|
|
|
<li class="app-navigation-entry-utils-menu-button" ng-show="calendar.writable"><button></button></li>
|
|
|
|
</ul>
|
2016-08-30 21:42:19 +00:00
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
<div class="app-navigation-entry-menu" ng-show="calendar.writable">
|
2016-08-30 21:42:19 +00:00
|
|
|
<ul>
|
2018-08-06 19:59:27 +00:00
|
|
|
<li>
|
|
|
|
<a ng-click="startEdit(calendar)">
|
|
|
|
<span class="icon-rename"></span>
|
|
|
|
<span><?php p($l->t('Edit')); ?></span>
|
2017-02-20 22:47:28 +00:00
|
|
|
</a>
|
2016-08-30 21:42:19 +00:00
|
|
|
</li>
|
2018-08-06 19:59:27 +00:00
|
|
|
<li>
|
|
|
|
<a ng-click="showCalDAVUrl(calendar)">
|
|
|
|
<span class="icon-public"></span>
|
|
|
|
<span><?php p($l->t('Link')); ?></span>
|
2017-02-20 22:47:28 +00:00
|
|
|
</a>
|
2016-08-30 21:42:19 +00:00
|
|
|
</li>
|
2018-08-06 19:59:27 +00:00
|
|
|
<li>
|
|
|
|
<a href="{{calendar.exportUrl}}" download="{{calendar.uri}}.ics">
|
|
|
|
<span class="icon-download"></span>
|
|
|
|
<span><?php p($l->t('Download')); ?></span>
|
2017-02-20 22:47:28 +00:00
|
|
|
</a>
|
2016-08-30 21:42:19 +00:00
|
|
|
</li>
|
2018-08-06 19:59:27 +00:00
|
|
|
<li confirmation="delete(calendar)" confirmation-message="deleteMessage(calendar)">
|
2016-08-30 21:42:19 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
<div class="app-navigation-entry-edit name" ng-class="{error: nameError}">
|
|
|
|
<form>
|
|
|
|
<input ng-model="calendar.displayname"
|
|
|
|
class="edit hasTooltip"
|
|
|
|
type="text"
|
|
|
|
ng-keyup="checkEdit($event,calendar)"
|
|
|
|
autofocus-on-insert>
|
|
|
|
<input type="cancel"
|
|
|
|
value=""
|
|
|
|
class="action icon-close"
|
|
|
|
ng-click="cancelEdit(calendar)"
|
|
|
|
title="<?php p($l->t('Cancel')); ?>">
|
|
|
|
<input type="submit"
|
|
|
|
value=""
|
|
|
|
class="action icon-checkmark"
|
|
|
|
ng-click="saveEdit(calendar)"
|
|
|
|
title="<?php p($l->t('Save')); ?>">
|
|
|
|
</form>
|
|
|
|
<colorpicker class="colorpicker"
|
|
|
|
selected="calendar.color">
|
|
|
|
</colorpicker>
|
|
|
|
</div>
|
|
|
|
<div class="app-navigation-entry-edit caldav">
|
|
|
|
<form>
|
|
|
|
<input class="caldav"
|
|
|
|
ng-value="calendar.caldav"
|
|
|
|
readonly
|
|
|
|
type="text"/>
|
|
|
|
<input type="cancel"
|
|
|
|
value=""
|
|
|
|
class="action icon-close"
|
|
|
|
ng-click="hideCalDAVUrl()"
|
|
|
|
title="<?php p($l->t('Cancel')); ?>">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="newList handler icon-add reactive editing" ng-class="{edit: status.addingList}">
|
|
|
|
<a class="addlist icon sprite"
|
|
|
|
ng-click="startCreate()"
|
|
|
|
oc-click-focus="{selector: '#newList', timeout: 0}">
|
|
|
|
<span class="title"><?php p($l->t('Add List...')); ?></span>
|
|
|
|
</a>
|
|
|
|
<div class="app-navigation-entry-edit name" ng-class="{error: nameError}">
|
|
|
|
<form ng-disabled="isAddingList">
|
|
|
|
<input id="newList"
|
|
|
|
ng-model="status.newListName"
|
|
|
|
class="edit hasTooltip"
|
|
|
|
type="text"
|
|
|
|
autofocus-on-insert
|
|
|
|
placeholder="<?php p($l->t('New List')); ?>"
|
|
|
|
ng-keyup="checkNew($event,status.newListName)">
|
|
|
|
<input type="cancel"
|
|
|
|
value=""
|
|
|
|
class="action icon-close"
|
|
|
|
ng-click="cancelCreate()"
|
|
|
|
title="<?php p($l->t('Cancel')); ?>">
|
|
|
|
<input type="submit"
|
|
|
|
value=""
|
|
|
|
class="action icon-checkmark"
|
|
|
|
ng-click="create($event)"
|
|
|
|
title="<?php p($l->t('Save')); ?>">
|
|
|
|
</form>
|
|
|
|
<colorpicker class="colorpicker" selected="color"></colorpicker>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div id="app-settings" ng-controller="SettingsController">
|
|
|
|
<div id="app-settings-header">
|
|
|
|
<button class="settings-button" data-apps-slide-toggle="#app-settings-content">
|
|
|
|
<span><?php p($l->t('Settings')); ?></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div id="app-settings-content">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="startOfWeek"><?php p($l->t('Start of week')); ?></label>
|
|
|
|
<select id="startOfWeek"
|
|
|
|
ng-change="setStartOfWeek()"
|
|
|
|
ng-model="settingsmodel.getById('various').startOfWeek"
|
|
|
|
ng-options="startOfWeekOption.id as startOfWeekOption.name for startOfWeekOption in startOfWeekOptions">
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
<li class="headline">
|
|
|
|
<?php p($l->t('Visibility of Smart Collections')); ?>
|
|
|
|
</li>
|
|
|
|
<li ng-repeat="collection in collections">
|
|
|
|
<div class="label-container">
|
|
|
|
<span class="icon {{ collection.icon }}">
|
|
|
|
<text ng-show="collection.id=='today'"><?php p($_['DOM']); ?></text>
|
|
|
|
</span>
|
|
|
|
<label for="visibilityCollection-{{collection.id}}" class="title">{{ collection.displayname }}</label>
|
2015-02-25 20:14:44 +00:00
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
<select id="visibilityCollection-{{collection.id}}"
|
|
|
|
ng-change="setVisibility(collection.id)"
|
|
|
|
ng-model="collection.show"
|
|
|
|
ng-options="collectionOption.id as collectionOption.name for collectionOption in collectionOptions">
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="app-content"
|
|
|
|
ng-controller="TasksController"
|
|
|
|
ng-class="{'with-app-sidebar':route.taskID}">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div id="add-task"
|
|
|
|
class="add-task handler"
|
|
|
|
ng-show="showInput()"
|
|
|
|
ng-class="{'focus':status.focusTaskInput}">
|
|
|
|
<form ng-submit="addTask(status.taskName)" name="addTaskForm">
|
|
|
|
<input id="target"
|
|
|
|
ng-disabled="isAddingTask"
|
|
|
|
ng-click="focusTaskInput()"
|
|
|
|
class="transparent"
|
|
|
|
placeholder="{{ getAddString() }}"
|
|
|
|
ng-model="status.taskName"
|
|
|
|
ng-keydown="checkTaskInput($event)"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="app-navigation-entry-utils">
|
|
|
|
<div class="app-navigation-entry-utils-menu-button" title="<?php p($l->t('Change sort order')); ?>">
|
|
|
|
<button class="sortorder-dropdown-button">
|
|
|
|
<span class="icon" ng-class="getSortOrderIcon()"></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</button>
|
2014-07-26 08:24:31 +00:00
|
|
|
</div>
|
2014-03-28 19:11:56 +00:00
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
<div class="app-navigation-entry-menu bubble sortorder-dropdown">
|
|
|
|
<ul>
|
|
|
|
<li ng-click="setSortOrder($event, 'default')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'default'}" class="handler">
|
|
|
|
<a>
|
2018-08-16 19:37:22 +00:00
|
|
|
<span class="icon icon-list"></span>
|
2018-08-06 19:59:27 +00:00
|
|
|
<span class="label"><?php p($l->t('Default')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-click="setSortOrder($event, 'due')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'due'}">
|
|
|
|
<a>
|
|
|
|
<span class="icon icon-calendar"></span>
|
|
|
|
<span class="label"><?php p($l->t('Due date')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-click="setSortOrder($event, 'start')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'start'}">
|
|
|
|
<a>
|
|
|
|
<span class="icon icon-calendar"></span>
|
|
|
|
<span class="label"><?php p($l->t('Start date')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-click="setSortOrder($event, 'priority')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'priority'}">
|
|
|
|
<a>
|
|
|
|
<span class="icon icon-task-star"></span>
|
|
|
|
<span class="label"><?php p($l->t('Priority')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-click="setSortOrder($event, 'alphabetically')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'alphabetically'}">
|
|
|
|
<a>
|
|
|
|
<span class="icon icon-alphabetically"></span>
|
|
|
|
<span class="label"><?php p($l->t('Alphabetically')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<!-- <li ng-click="setSortOrder($event, 'manual')" ng-class="{active: settingsmodel.getById('various').sortOrder == 'manual'}">
|
|
|
|
<a>
|
|
|
|
<span class="icon icon-manual"></span>
|
|
|
|
<span class="label"><?php p($l->t('Manually')); ?></span>
|
|
|
|
<span class="icon sort-indicator" ng-class="{'icon-sort-up': settingsmodel.getById('various').sortDirection, 'icon-sort-down': !settingsmodel.getById('various').sortDirection}"></span>
|
|
|
|
</a>
|
|
|
|
</li> -->
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="task-list">
|
|
|
|
<?php print_unescaped($this->inc('part.tasklist')); ?>
|
|
|
|
<?php print_unescaped($this->inc('part.collectionall')); ?>
|
|
|
|
<?php print_unescaped($this->inc('part.collectionweek')); ?>
|
|
|
|
<div id="searchresults"></div>
|
|
|
|
<div class="task-item template">
|
|
|
|
<div class="task-body">
|
|
|
|
<div class="percentdone"></div>
|
|
|
|
<a class="task-checkbox" name="toggleCompleted" ng-click="toggleCompleted()">
|
|
|
|
<span class="icon task-checkbox"></span>
|
|
|
|
</a>
|
|
|
|
<a class="icon task-separator"></a>
|
|
|
|
<a class="task-star" ng-click="toggleStarred(task.id)">
|
|
|
|
<span class="icon task-star faded"></span>
|
|
|
|
</a>
|
|
|
|
<a class="duedate" ng-class="{overdue: TasksModel.overdue(task.due)}">{{ task.due | dateTaskList }}</a>
|
|
|
|
<div class="title-wrapper">
|
|
|
|
<span class="title"></span>
|
|
|
|
<span class="icon task-attachment"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-28 19:11:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-28 15:33:21 +00:00
|
|
|
</div>
|
2018-08-06 19:59:27 +00:00
|
|
|
<div id="app-sidebar" ng-class="{'disappear':!route.taskID}">
|
|
|
|
<?php print_unescaped($this->inc('part.details')); ?>
|
|
|
|
</div>
|
|
|
|
<script type="text/ng-template" id="part.taskbody">
|
|
|
|
<?php print_unescaped($this->inc('part.taskbody')); ?>
|
|
|
|
</script>
|