Refactor and remove sqlite and replace with MySQL
This commit is contained in:
34
web/templates/tickets.html
Normal file
34
web/templates/tickets.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{{ 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>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user