-
Notifications
You must be signed in to change notification settings - Fork 77
/
kanban.html
253 lines (224 loc) · 19.2 KB
/
kanban.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!doctype html>
<html ng-app="taskboardApp">
<head>
<title>Outlook Task Board</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/taskboard.css">
<!-- scripts -->
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery-ui.min.js"></script>
<script src="lib/angular.js"></script>
<script src="lib/sortable.min.js"></script>
<script src="lib/moment.min.js"></script>
<script src="js/config.js"></script>
<script src="js/app.js"></script>
</head>
<body ng-controller="taskboardController" ng-init="init()" >
<div class="taskboard container-fluid">
<!-- filter bar -->
<section id="filterbar" class="row">
<div class="col-md-12">
<div class="input-group">
<div class="input-group-addon"><strong>Outlook Taskboard</strong></div>
<div class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Refresh" type="button" onclick="window.location.reload();"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button>
</div>
<!--<div class="input-group-addon"><span class="glyphicon glyphicon-filter" aria-hidden="true"></span></div>-->
<div ng-show="(search != undefined)" class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Clear" type="button" ng-click="search = undefined"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
</div>
<input type="text" name="search" ng-model="search" class="form-control" placeholder="Filter" />
<div class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Report" type="button" ng-click="createReport();"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></button>
</div>
</div>
</div>
</section>
<!-- tasklanes section -->
<section class="row">
<!-- lane #1 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading">
<h5>{{ general_config.BACKLOG_FOLDER.Title }}
<span class="pull-right">
<button class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('backlog');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ backlogTasks.length }}</span>
</span>
</h5>
</header>
<ul id="backlogList" ui-sortable="sortableOptions" ng-model="backlogTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in backlogTasks | filter:search" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate)" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,backlogTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #1 -->
<!-- lane #2 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading ">
<h5>{{ general_config.NEXT_FOLDER.Title }}
<span class="pull-right">
<button ng-if="( general_config.NEXT_FOLDER.Limit == 0 || nextTasks.length < general_config.NEXT_FOLDER.Limit )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('next');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ nextTasks.length }}</span> <span ng-if="( general_config.NEXT_FOLDER.Limit > 0 )" class="label label-primary">{{ general_config.NEXT_FOLDER.Limit }}</span>
</span>
</h5>
</header>
<ul id="nextList" ui-sortable="sortableOptions" ng-model="nextTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in nextTasks | filter:search" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate)" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,nextTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #2 -->
<!-- lane #3 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading">
<h5>{{ general_config.INPROGRESS_FOLDER.Title }}
<span class="pull-right">
<button ng-if="( general_config.INPROGRESS_FOLDER.Limit == 0 || inprogressTasks.length < general_config.INPROGRESS_FOLDER.Limit )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('inprogress');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ inprogressTasks.length }}</span> <span ng-if="( general_config.INPROGRESS_FOLDER.Limit > 0 )" class="label label-primary">{{ general_config.INPROGRESS_FOLDER.Limit }}</span>
</span>
</h5>
</header>
<ul id="inprogressList" ui-sortable="sortableOptions" ng-model="inprogressTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in inprogressTasks | filter:search" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate)" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,inprogressTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #3 -->
<div class="clearfix visible-sm-block"></div>
<!-- lane #4 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading">
<h5>{{ general_config.FOCUS_FOLDER.Title }}
<span class="pull-right">
<button ng-if="( general_config.FOCUS_FOLDER.Limit == 0 || focusTasks.length < general_config.FOCUS_FOLDER.Limit )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('focus');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ focusTasks.length }}</span> <span ng-if="( general_config.FOCUS_FOLDER.Limit > 0 )" class="label label-primary">{{ general_config.FOCUS_FOLDER.Limit }}</span>
</span>
</h5>
</header>
<ul id="focusList" ui-sortable="sortableOptions" ng-model="focusTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in focusTasks | filter:search" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate)" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,focusTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #4 -->
<!-- lane #5 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading">
<h5>{{ general_config.WAITING_FOLDER.Title }}
<span class="pull-right">
<button ng-if="( general_config.WAITING_FOLDER.Limit == 0 || waitingTasks.length < general_config.WAITING_FOLDER.Limit )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('waiting');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ waitingTasks.length }}</span> <span ng-if="( general_config.WAITING_FOLDER.Limit > 0 )" class="label label-primary">{{ general_config.WAITING_FOLDER.Limit }}</span>
</span>
</h5>
</header>
<ul id="waitingList" ui-sortable="sortableOptions" ng-model="waitingTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in waitingTasks | filter:search" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate)" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,waitingTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #5 -->
<!-- lane #6 -->
<div class="tasklane col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="panel panel-default">
<header class="panel-heading">
<h5>{{ general_config.COMPLETED_FOLDER.Title }}
<span class="pull-right">
<span class="label label-info">{{ completedTasks.length }}</span>
</span>
</h5>
</header>
<ul id="completedList" ui-sortable="sortableOptions" ng-model="completedTasks" class="panel-body tasklist list-unstyled">
<li ng-repeat="task in completedTasks | filter:search" class="task panel task-completed" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" class="pull-right">(Due: {{ task.duedate | date:'dd/MM/yy' }}) </span>
</header>
<div class="panel-body"> {{ task.notes }} </div>
<footer class="text-right">
<div ng-if="(task.categories != '')" class="pull-left small"><span class="glyphicon glyphicon-tag"></span> {{ task.categories }}</div>
<span class="btn-group btn-group-xs">
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Archive" type="button" ng-click="archiveTask(task,completedTasks)"><span class="glyphicon glyphicon-check" aria-hidden="true"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,completedTasks)"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
</span>
</footer>
</li>
</ul>
</div>
</div> <!-- lane #6 -->
</section>
</div>
</body>
</html>