-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcockpit.html
125 lines (106 loc) · 4.1 KB
/
cockpit.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
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="Gilles Cherix">
<link rel="icon" href="favicon.ico">
<title>cockpit.digitalguru.ch</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="navbar-fixed">
<nav role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" class="brand-logo" href="/">Cockpit<span class="exponent">beta</span></a>
<ul class="right hide-on-med-and-down">
<li><a href="#">Navbar Link</a></li>
<li>{{> atNavButton}}</li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="#">Navbar Link</a></li>
<li>{{> atNavButton}}</li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
</div>
<div class="container">
{{#if currentUser}}
<div class="row">
<div class="col s12 m6">
<div class="card blue-grey lighten-2">
<div class="card-content white-text">
<span class="card-title">Bonjour Stefan !</span>
<p>Votre solde actuel : <span style="font-size: 2em; color: green">{{amount}} h</span></p>
</div>
<div class="card-action">
<a href="#" class="waves-effect waves-light btn">Créditer mon compte</a>
</div>
</div>
</div>
</div>
<div class="divider"></div>
<div class="section">
<div class="row">
<div class="col s3"><h5>Résumé pour</h5></div>
<div class="input-field col s2">
<select>
<option value="1">Janvier</option>
<option value="2">Février</option>
<option value="3">Mars</option>
<option value="4">Avril</option>
</select>
</div>
<script>
$(document).ready(function() {
$('select').material_select();
});
</script>
</div>
<div class="row">
<table class="striped responsive-table">
<thead>
<tr>
<th>CLIENT</th>
<th>PROJET</th>
<th>DATE</th>
<th>DESCRIPTION</th>
<th>DURÉE</th>
</tr>
</thead>
<tbody>
{{#each items}}
{{> item}}
{{/each}}
<tr style="border-top: solid 2px #ddd;">
<td colspan="4">TOTAL</td>
<td>{{sumForMonth}} h</td>
</tr>
</tbody>
</table>
</div>
</div>
{{else}}
{{> atForm}}
{{/if}}
</div>
<footer class="page-footer">
<div class="footer-copyright">
<div class="container">
© 2016 Gilles Cherix
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
</div>
</div>
</footer>
</body>
<template name="item">
<tr>
<td>{{client}}</td>
<td>{{project}}</td>
<td>{{date}}</td>
<td>{{description}}</td>
<td>{{duration}} h</td>
</tr>
</template>