Lots of changes around viewing tickets from css perspective logic changes nwe handlers and service triggers... just lots of stuff...
This commit is contained in:
@@ -23,17 +23,28 @@
|
||||
<td>{{ .GameType }}</td>
|
||||
<td>{{ .DrawDate }}</td>
|
||||
<td>
|
||||
{{ .Ball1 }} {{ .Ball2 }} {{ .Ball3 }} {{ .Ball4 }} {{ .Ball5 }}
|
||||
{{ if ne .Ball6 0 }} {{ .Ball6 }} {{ end }}
|
||||
<div class="flex flex-wrap gap-1">
|
||||
{{ range .Balls }}
|
||||
<div class="ball">{{ . }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div style="color: red; font-size: 0.75rem; margin-top: 0.25rem;">
|
||||
MatchedMain: {{ .MatchedMain }} | MatchedBonus: {{ .MatchedBonus }}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ if eq .GameType "Lotto" }}
|
||||
{{ if eq .GameType "Lotto" }}
|
||||
<span style="color: lightgray; font-style: italic;">–</span>
|
||||
{{ else if gt (intVal .Bonus2) 0 }}
|
||||
{{ if gt (intVal .Bonus1) 0 }}{{ intVal .Bonus1 }}, {{ end }}
|
||||
{{ intVal .Bonus2 }}
|
||||
<div class="flex flex-wrap gap-1">
|
||||
{{ if gt (intVal .Bonus1) 0 }}
|
||||
<div class="ball bonus">{{ intVal .Bonus1 }}</div>
|
||||
{{ end }}
|
||||
<div class="ball bonus">{{ intVal .Bonus2 }}</div>
|
||||
</div>
|
||||
{{ else if gt (intVal .Bonus1) 0 }}
|
||||
{{ intVal .Bonus1 }}
|
||||
<div class="ball bonus">{{ intVal .Bonus1 }}</div>
|
||||
{{ else }}
|
||||
<span style="color: lightgray;">–</span>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
<form method="POST" action="/admin/match">
|
||||
{{ .CSRFField }} <!-- Injected via template helper -->
|
||||
<button>Run Matching</button>
|
||||
</form>
|
||||
{{ define "content" }}
|
||||
<h2>Manual Admin Triggers</h2>
|
||||
|
||||
<p>This page lets you manually run backend processes like result matching.</p>
|
||||
|
||||
<form method="POST" action="/admin/triggers">
|
||||
{{ .CSRFField }}
|
||||
<button class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600">
|
||||
Run Ticket Matching
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{{ if .Flash }}
|
||||
<p class="mt-4 text-green-600 font-medium">{{ .Flash }}</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{{ define "layout" }}
|
||||
<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="/static/css/site.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@3.3.5/dist/tailwind.min.css" rel="stylesheet">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
Reference in New Issue
Block a user