expand on admin functionality, hardening still needs to be implemented.
This commit is contained in:
12
templates/admin/draws/modify_draw.html
Normal file
12
templates/admin/draws/modify_draw.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "modify_draw" }}
|
||||
<h2 class="text-xl font-semibold mb-4">Modify Draw</h2>
|
||||
<form method="POST" action="/admin/draws/modify">
|
||||
{{ .CSRFField }}
|
||||
<input type="hidden" name="id" value="{{ .Draw.ID }}">
|
||||
<label class="block">Game Type: <input name="game_type" class="input" value="{{ .Draw.GameType }}"></label>
|
||||
<label class="block">Draw Date: <input name="draw_date" type="date" class="input" value="{{ .Draw.DrawDate }}"></label>
|
||||
<label class="block">Ball Set: <input name="ball_set" class="input" value="{{ .Draw.BallSet }}"></label>
|
||||
<label class="block">Machine: <input name="machine" class="input" value="{{ .Draw.Machine }}"></label>
|
||||
<button class="btn">Update Draw</button>
|
||||
</form>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user