43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{{ define "new_draw" }}
|
|
<h2 class="text-xl font-semibold mb-4">Add New Draw</h2>
|
|
<form method="POST" action="/admin/draws/submit">
|
|
{{ .CSRFField }}
|
|
<label class="block">Game Type: <input name="game_type" class="input"></label>
|
|
<label class="block">Draw Date: <input name="draw_date" type="date" class="input"></label>
|
|
<label class="block">Ball Set: <input name="ball_set" class="input"></label>
|
|
<label class="block">Machine: <input name="machine" class="input"></label>
|
|
<button class="btn">Create Draw</button>
|
|
</form>
|
|
{{ end }}
|
|
|
|
|
|
<!-- Old new draw
|
|
|
|
{{ define "content" }}
|
|
<a href="/">← Back</a>
|
|
<h2>Add New Thunderball Draw</h2>
|
|
<form method="POST" action="/submit">
|
|
{{ .csrfField }}
|
|
<div class="form-section">
|
|
<label>Date: <input type="date" name="date" required></label>
|
|
</div>
|
|
<div class="form-section">
|
|
<label>Machine: <input type="text" name="machine" required></label>
|
|
</div>
|
|
<div class="form-section">
|
|
<label>Ball Set: <input type="text" name="ballset" required></label>
|
|
</div>
|
|
<div class="form-section">
|
|
<label>Ball 1: <input type="text" name="ball1" required></label>
|
|
<label>Ball 2: <input type="text" name="ball2" required></label>
|
|
<label>Ball 3: <input type="text" name="ball3" required></label>
|
|
<label>Ball 4: <input type="text" name="ball4" required></label>
|
|
<label>Ball 5: <input type="text" name="ball5" required></label>
|
|
</div>
|
|
<div class="form-section">
|
|
<label>Thunderball: <input type="text" name="thunderball" required></label>
|
|
</div>
|
|
<button type="submit">Save Draw</button>
|
|
</form>
|
|
{{ end }} -->
|