This commit is contained in:
2025-03-25 09:11:23 +00:00
parent f4a8983b48
commit 3598cb5fd9
7 changed files with 92 additions and 11 deletions

36
templates/tickets.html Normal file
View File

@@ -0,0 +1,36 @@
{{ define "tickets" }}
{{ define "content" }}
<a href="/">← Back to Home</a>
<h2>My Tickets</h2>
<table>
<thead>
<tr>
<th>Date</th>
<th>Game</th>
<th>Numbers</th>
<th>Bonus</th>
<th>Duplicate?</th>
</tr>
</thead>
<tbody>
{{ range . }}
<tr>
<td>{{ .DrawDate }}</td>
<td>{{ .GameType }}</td>
<td>{{ .Ball1 }}, {{ .Ball2 }}, {{ .Ball3 }}, {{ .Ball4 }}, {{ .Ball5 }}</td>
<td>
{{ if .Bonus1 }}{{ .Bonus1 }}{{ end }}
{{ if .Bonus2 }}, {{ .Bonus2 }}{{ end }}
</td>
<td>
{{ if .Duplicate }}⚠️ Yes{{ else }}✔️ No{{ end }}
</td>
</tr>
{{ else }}
<tr><td colspan="5">No tickets logged yet.</td></tr>
{{ end }}
</tbody>
</table>
{{ template "layout" . }}
{{ end }}