29 lines
750 B
HTML
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>
|