blob: c408fb00eab1cd14bd6197ee4f1b5e93ad022916 (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tidsreg</title>
<!-- TODO REMOVE -->
<script src="https://unpkg.com/htmx.org@1.9.12/dist/htmx.js" integrity="sha384-qbtR4rS9RrUMECUWDWM2+YGgN3U4V4ZncZ0BvUcg9FGct0jqXz3PUdVpU1p0yrXS" crossorigin="anonymous"></script>
<style>
.flex {
display: flex;
}
.flex-grow {
flex-grow: 1;
}
.just-start {
justify-content: flex-start;
}
.week-bar {
margin-left: 10px;
border: 1px solid black;
}
.status-started {
border-color: green;
}
.status-stopped {
border-color: red;
}
.status-detached {
border-color: blue;
}
#entry-bar {
border-width: 3px;
border-style: solid;
padding: 10px;
}
.entry-box {
}
#controls-bar {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="controls-bar">
<button>I går</button>
<input type="date" />
<button>I morgen</button>
</div>
<div class="flex">
{{template "entry.html" .Entry}}
<div class="flex-grow week-bar">
<b>Uge 42</b>
</div>
</div>
<div class="flex">
<div class="flex-grow">
<table>
<thead>
<tr>
<th>Id</th>
<th>Fra</th>
<th>Til</th>
<th>Mærker</th>
<th>Beskrivelse</th>
<th>Handlinger</th>
</tr>
</thead>
{{ template "entryRows.html" . }}
</table>
</div>
</div>
</body>
</html>
|