-
Notifications
You must be signed in to change notification settings - Fork 35
/
time_entries.html
176 lines (160 loc) · 9.55 KB
/
time_entries.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
<!DOCTYPE html>
<html>
<head>
<title>Crono Time Tracker - Timer entries</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/jquery.cookie.js"></script>
<script src="assets/js/sha1.js"></script>
<script src="assets/js/chosen.jquery.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="assets/js/crono.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="assets/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="assets/css/chosen.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-datetimepicker.min.css">
<link href='http://fonts.googleapis.com/css?family=Maven+Pro' rel='stylesheet' type='text/css'>
</head>
<body>
<script>
$( document ).ready(function() {
crono.check_session(false);
$('#btn-logout').click(function(event) {
event.preventDefault();
crono.logout();
});
$('#from_date_div').datetimepicker({pickTime: false});
$('#to_date_div').datetimepicker({pickTime: false});
crono.populateCustomers($('#search_customer_list'), null);
crono.populateUsers($('#search_user_list'), null);
crono.populateProjects($('#search_project_list'));
crono.searchTimeEntries();
$('#btn_search').click(function() {
crono.searchTimeEntries();
});
});
</script>
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
class="icon-bar"></span><span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="timer.html" style="font-family: 'Maven Pro', sans-serif; font-size:20px;padding-bottom:6px;">Cr<i class="fa fa-clock-o"></i>no</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="timer.html"><span class="fa fa-play"></span> Timer</a></li>
<li class="admin-only"><a href="projects.html"><span class="fa fa-tasks"></span> Projects</a></li>
<li class="admin-only"><a href="customers.html"><span class="fa fa-users"></span> Customers</a></li>
<li class="dropdown hide"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
class="fa fa-bar-chart-o"></span> Reports <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="invoice.html"><span class="glyphicon glyphicon-euro"></span> Create invoice</a></li>
<li class="divider"></li>
<li><a href="stats.html"><span class="glyphicon glyphicon-stats"></span> Stats</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li style="font-size:20px; line-height:12px;" class="hidden-sm hidden-xm"><p class="navbar-text hide" id="navbar_timer">
<small><span id="project-timer-name">No task / No project</span></small>
<span id="project-timer">00:00</span>
<a href="#" class="navbar-link" style="padding-left:5px; padding-right:10px;" id="navbar_stop_timer" data-toggle="tooltip" title="Stop timer"><span class="fa fa-stop"></span></a>
</p></li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
class="fa fa-user"></span> <span id="navbar_user_firstname">Admin</span> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="admin-only"><a href="settings.html"><span class="glyphicon glyphicon-cog"></span> System Settings</a></li>
<li class="admin-only"><a href="users.html"><span class="fa fa-users"></span> Manage Users</a></li>
<li class="divider"></li>
<li><a href="#" id="btn_edit_settings"><span class="glyphicon glyphicon-user"></span> Edit Account</a></li>
<li class="divider"></li>
<li><a href="#" id="btn-logout"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1><span class="fa fa-clock-o"></span> Time Entries </h1>
<div class="clearfix"></div>
<div class="well well-sm">
<div class="row">
<div class="col-md-2">
<label>From date</label>
<div class="form-group">
<div class='input-group date' id='from_date_div'>
<input type='text' class="form-control" data-format="yyyy-MM-dd" id='from_date'/>
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class="col-md-2">
<label>To date</label>
<div class="form-group">
<div class='input-group date' id='to_date_div'>
<input type='text' class="form-control" data-format="yyyy-MM-dd" id='to_date'/>
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class="col-md-3">
<label>Project</label>
<select class="chosen-select form-control" id="search_project_list"></select>
</div>
<div class="col-md-3">
<label>Customer</label>
<select class="chosen-select form-control" id="search_customer_list"></select>
</div>
<div class="col-md-2 admin-only">
<label>User</label>
<select class="chosen-select form-control" id="search_user_list"></select>
</div>
</div>
<div class="row">
<div class="col-md-12">
<button type="button" id="btn_search" class="btn btn-block btn-info"><span class="fa fa-search"></span> Search</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<h5>Total time: <span id="total_duration">00:00:00</span></h5>
</div>
</div>
<table class="table table-striped" id="timer-list-table">
<thead>
<tr>
<th>Date</th>
<th>Task</th>
<th>Project</th>
<th>Duration</th>
<th>Manage</th>
</tr>
</thead>
<tbody>
<tr id="row_no_projects">
<td colspan="5">No entries yet</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- footer-->
<div style="width:100%" class="text-center">
<a href="http://codestellar.net" class="text-center new-account" target="_blank">By codestellar.net</span></a>
</div>
</body>
</html>