2022-01-15 23:41:43 +00:00
|
|
|
<style type="text/css">
|
|
|
|
table, th, td {
|
|
|
|
border: 1px solid black;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<h1>Time Tracking</h1>
|
|
|
|
<p>Currently doing {{ .lastEvent.Name }} since {{ .lastEvent.EventTimestamp }}</p>
|
|
|
|
|
|
|
|
<h3>Per Day</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Tag</td>
|
|
|
|
{{ range .daylist }}
|
|
|
|
<td>{{ . }}</td>
|
|
|
|
{{ end }}
|
2022-01-15 23:56:54 +00:00
|
|
|
<th>Summe</th>
|
2022-01-15 23:41:43 +00:00
|
|
|
</tr>
|
|
|
|
{{ range $val := .taglist }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ $val }}</td>
|
|
|
|
{{ range $v := $.daylist }}
|
|
|
|
{{ $secounds := index $.currentState $val $v }}
|
|
|
|
<td>{{tominute $secounds }}</td>
|
|
|
|
{{ end }}
|
2022-01-15 23:56:54 +00:00
|
|
|
<td>{{ index $.weeklist $val }}</td>
|
2022-01-15 23:41:43 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</table>
|
2022-01-15 23:56:54 +00:00
|
|
|
|
2022-01-15 23:41:43 +00:00
|
|
|
<h3>Start</h3>
|
|
|
|
<form method="get" action="/event">
|
|
|
|
<select name="name">
|
|
|
|
{{ range $val := .taglist }}
|
|
|
|
<option>{{$val}}</option>
|
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
<br/>
|
|
|
|
<input type="submit"></input>
|
|
|
|
</form>
|