Files
website/templates/syndicates/tickets.html
H3ALY 053ccf3845 **Untested! ** Add restore functionality for archived messages
- Added `RestoreMessageHandler` and route at `/account/messages/restore`
- Updated `users_messages` table to support `archived_at` reset
- Added restore button to archived messages template
- Ensures archived messages can be moved back into inbox
2025-04-02 23:53:29 +01:00

43 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ define "content" }}
<div class="container py-4">
<h2>Syndicate Tickets</h2>
{{ if .Tickets }}
<table class="table table-striped">
<thead>
<tr>
<th>Game</th>
<th>Draw Date</th>
<th>Numbers</th>
<th>Matched</th>
<th>Prize</th>
</tr>
</thead>
<tbody>
{{ range .Tickets }}
<tr>
<td>{{ .GameType }}</td>
<td>{{ .DrawDate }}</td>
<td>
{{ .Ball1 }} {{ .Ball2 }} {{ .Ball3 }} {{ .Ball4 }} {{ .Ball5 }} {{ .Ball6 }}
{{ if .Bonus1 }}+{{ .Bonus1 }}{{ end }}
{{ if .Bonus2 }} {{ .Bonus2 }}{{ end }}
</td>
<td>{{ .MatchedMain }} + {{ .MatchedBonus }}</td>
<td>
{{ if .IsWinner }}
💷 {{ .PrizeLabel }}
{{ else }}
<span class="text-muted"></span>
{{ end }}
</td>
</tr>
{{ end }}
</tbody>
</table>
{{ else }}
<div class="alert alert-info">No tickets found for this syndicate.</div>
{{ end }}
</div>
{{ end }}