14 lines
524 B
HTML
14 lines
524 B
HTML
{{ define "modify_prizes" }}
|
|
<h2 class="text-xl font-semibold mb-4">Modify Prize Breakdown</h2>
|
|
<form method="POST" action="/admin/draws/prizes/modify">
|
|
{{ .CSRFField }}
|
|
<input type="hidden" name="draw_date" value="{{ .DrawDate }}">
|
|
{{ range $i, $ := .PrizeLabels }}
|
|
<label class="block">{{ . }}
|
|
<input name="prize{{ add $i 1 }}_per_winner" class="input" value="{{ index $.Prizes (print "prize" (add $i 1) "_per_winner") }}">
|
|
</label>
|
|
{{ end }}
|
|
<button class="btn">Update Prizes</button>
|
|
</form>
|
|
{{ end }}
|