/
google-calendar.html
115 lines (115 loc) · 3.97 KB
/
google-calendar.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
<html>
<head>
<link rel="stylesheet" href="jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style>
input[type="checkbox"] {
display: none;
}
label:before {
font-family: 'FontAwesome';
width: 1.25em;
display: inline-block;
}
input[type="checkbox"] + label:before {
content: "\f204"; /* toggle-off */
cursor: pointer;
}
input[type="checkbox"]:checked + label:before {
content: "\f205"; /* toggle-on */
cursor: pointer;
}
body {
margin-bottom: 40px;
}
.nav-button {
color: #777;
}
</style>
</head>
<body>
<div id="log-time-div" class="container">
<div class="page-header">
<h3>Log Time with Google Calendar
<small class="pull-right">
<i class="fa fa-question-circle"></i> <a href="#" class="nav-button" id="settings"><i class="fa fa-cog"></i></a>
</small>
</h3>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
<div class="form-group">
<div class='input-group date'>
<input type='text' class="form-control" id='startDate' data-role="date" />
<span class="input-group-addon">
<i class="fa fa-calendar"></i> Start
</span>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4 text-center">
<div class="form-group">
<div class='input-group date'>
<input type='text' class="form-control" id='endDate' data-role="date" />
<span class="input-group-addon">
<i class="fa fa-calendar"></i> End
</span>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<span class="pull-right">
<button class="btn btn-primary" id="authorize-button">
Get meetings from <i class="fa fa-google"></i>
</button>
</span>
</div>
</div>
<div class="row text-center hidden" id="danger-row">
<div class="container">
<div class="alert alert-danger">
<strong><i class="fa fa-exclamation-triangle"></i> Prob lay mo!</strong> Unable to log time for the meetings highlighted in red.
</div>
</div>
</div>
<div class="row text-center hidden" id="warning-row">
<div class="container">
<div class="alert alert-warning">
<strong><i class="fa fa-exclamation-triangle"></i> Heads up!</strong> No meetings found for that date range.
</div>
</div>
</div>
<div class="table-responsive">
<form id="log-time-form">
<table class="table table-hover" id="timesheet-table">
<thead>
<tr>
<th>Meeting</th>
<th>Start Time</th>
<th>End Time</th>
<th>Time Spent</th>
<th>Ticket</th>
<th>Log</th>
</tr>
</thead>
<tbody id="table-body">
<!-- Google Calendar Information Goes Here -->
</tbody>
</table>
</form>
</div>
<div class="row pull-right">
<div class="col-xs-12 pull-right">
<button id="log-time-button" class="btn btn-success disabled"><i class="fa fa-pencil"></i> Log Time</button>
</div>
</div>
</div>
</body>
<script src="jquery-2.1.1.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="google-calendar.js"></script>
<!-- <script src="chrome_ext.js"></script>
<script src="bootstrap.min.js"></script>
<script src="https://apis.google.com/js/client.js?onload=checkAuth"></script>-->
</html>