tilde.club/html/fruitvote/templates/vote.html
Lizzy Hunt def61909c2
All checks were successful
continuous-integration/drone/push Build is passing
fruitvote
2024-03-10 16:45:26 -06:00

29 lines
750 B
HTML

<form method="POST">
<div class="fruitvote">
{{ range $i, $fruit := . }}
{{ if $i }}
<div class="versus">
<h1>OR</h1>
</div>
{{ end }}
<label class="contestant">
<input type="radio" name="winner" value="{{ .Name }}" {{ if eq $i 0 }} checked {{ end }} />
<div>
<img src="{{ .Img }}" alt="image" />
<p>{{ .Name }}</p>
</div>
</label>
<input type="hidden" name="contestant[]" value="{{ .Name }}" />
{{ end }}
</div>
<br />
<div>
<input type="submit" value="Vote" />
</div>
</form>
<br />
<div><a href="/~simponic/fruitvote"><button>Skip</button></a></div>
<br />
<div><a href="/~simponic/fruitvote/stats">view rankings!</a></div>