-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (103 loc) · 3.93 KB
/
index.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
<!doctype html>
<html>
<head>
<title>Paymo3 Timesheet Linker</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/jquery.dataTables.min.css" />
<script type="text/javascript" src="assets/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/PapaParse/papaparse.min.js"></script>
<script type="text/javascript" src="assets/js/moment.js"></script>
<script type="text/javascript" src="assets/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="assets/angular/angular.min.js"></script>
<script type="text/javascript" src="assets/js/angular-file-model.js"></script>
<script type="text/javascript" src="assets/js/app.js"></script>
<style tyle="text/css">
.highlight {
font-weight: bold;
font-style: italic;
}
</style>
</head>
<body ng-app="pml">
<div class="container-fluid" ng-controller="AppCtrl">
<div class="row">
<div class="col-md-6">
<form class="form-inline login">
<div class="form-group">
<input type="text" ng-model="apikey" class="form-control" id="apikey" placeholder="API Key" />
</div>
<button type="button" class="btn btn-default" ng-click="authorize()">Login</button>
</form>
</div>
<div class="col-md-offset-2 col-md-4">
<form class="form-inline">
<div class="form-group">
<input accept=".csv" type="file" name="file" file-model="csvFile" class="form-control" />
</div>
<button type="button" ng-click="processFile()" class="btn btn-success">Fetch Tasks</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="panel-title">Projects and Tasks</div>
</div>
<div class="panel-body">
<input placeholder="Filter project..." type="text" ng-model="_pquery" class="col-md-6" style="margin-botom: 15px;" />
<input placeholder="Filter task..." type="text" ng-model="_tquery" class="col-md-6" style="margin-botom: 15px;" />
<ul class="no-bullet" ng-repeat="project in projects | filter:_pquery">
<li>
<strong>{{ project.name }}</strong>
<ul>
<li ng-click="linkTime(task)" ng-repeat="task in project.tasks | filter:_tquery">{{ task.name }}</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="col-md-9">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="panel-title">
Unlinked Tasks (
{{ toHHMMSS(countSelectedEntries()) }} /
{{ toHHMMSS(countEntries()) }}
)
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<input style="margin-bottom: 10px;" placeholder="Filter project/task..." type="text" ng-model="t_query" class="form-control" />
<a class="btn btn-xs btn-primary" ng-click="selectAllTasks()">All</a> | <a class="btn btn-xs btn-primary" ng-click="deSelectAllTasks()">None</a>
<table id="mainTable" class="table table-striped table-bordered" style="margin-top: 5px;">
<thead>
<tr>
<td class="col-md-1"></td>
<th class="col-md-10">Task</th>
<th class="col-md-2">Time</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="entry in entries | orderBy:'-seconds' | filter:t_query">
<td><input ng-checked="entry.selected" type="checkbox" ng-click="toggleSelection(entry)" /></td>
<td ng-class="{highlight: entry.selected}">{{ entry.title }}<br/>{{ entry.date.format('DD MMM, YYYY') }}</td>
<td>{{ toHHMMSS(entry.seconds) }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>