-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
94 lines (94 loc) · 3.61 KB
/
popup.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
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="popup.css" />
<script type="text/javascript" src="util.js"></script>
<script type="text/javascript" src="popup.js"></script>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
<link rel="stylesheet" href="pikaday.css" />
<script type="text/javascript" src="pikaday.js"></script>
</head>
<body>
<div class="tabs">
<ul>
<li class="tab slide-left active" data-content="tasks" data-order="0">
Tasks
</li>
<li class="tab slide-left" data-content="clients" data-order="1">
Clients
</li>
<li class="tab slide-left" data-content="projects" data-order="2">
Projects
</li>
<li class="underline"></li>
</ul>
</div>
<a href="#" id="openSettings" class="button icon"><i class="fa fa-cogs"></i></a>
<div class="content-container">
<div class="content active" id="tasks">
<input type="text" id="startDate" placeholder="Start Date" value="05/22/2017"/><input type="text" id="endDate" value="05/28/2017" placeholder="End Date" />
<p class="timestamp">
<strong>Last Updated: </strong>
<span id="timeEntriesTimestamp">Never</span>
</p>
<a href="#" class="button" id="updateTimeEntries">Update<i class="fa fa-circle-o-notch fa-spin fa-fw"></i></a>
<p id="invalidDate">
These dates aren't valid, please try again.
</p>
<table>
<tbody id="entryTableBody">
</tbody>
</table>
</div>
<div class="content" id="clients">
<a href="#" class="button" id="updateClients">Update<i class="fa fa-circle-o-notch fa-spin fa-fw"></i></a>
<p class="timestamp">
<strong>Last Updated: </strong>
<span id="clientTimestamp"></span>
</p>
<table>
<tbody id="clientTableBody">
</tbody>
</table>
</div>
<div class="content" id="projects">
<a href="#" class="button" id="updateProjects">Update<i class="fa fa-circle-o-notch fa-spin fa-fw"></i></a>
<p class="timestamp">
<strong>Last Updated: </strong>
<span id="projectTimestamp"></span>
</p>
<table>
<tbody id="projectTableBody">
</tbody>
</table>
</div>
</div>
<div class="overlay" id="login">
<div class="content">
<h2>Log In</h2>
<p>
This is either your first time using this extension or your cache has been cleared. Please enter your API key below to continue.
</p>
<label for="apiKey">API Key</label>
<input type="text" id="apiKey" /><a href="#" class="button" id="testApiKey">Test and Save<i class="fa fa-circle-o-notch fa-spin fa-fw"></i></a><br/>
<small><strong>Hint:</strong> Find your api key <a href="https://toggl.com/app/profile" target="_blank">here</a></small>
</div>
</div>
<div class="overlay" id="settings">
<div class="content">
<input type="checkbox" id="autoSyncClients" checked /><label class="checkbox" for="autoSyncClients">Automatically Sync Clients</label>
<p>
When selected, automatically fetches new list of clients once per day on startup.
</p>
<input type="checkbox" id="autoSyncProjects" checked /><label class="checkbox" for="autoSyncProjects">Automatically Sync Projects</label>
<p>
When selected, automatically fetches new list of projects once per day on startup.
</p>
<p>
<a href="#" id="saveSettings" class="button green">Save<i class="fa fa-circle-o-notch fa-spin fa-fw"></i></a>
</p>
<i class="fa fa-times fa-2x" id="closeSettings"></i>
</div>
</div>
</body>
</html>