all repos — honk @ e8bbd47228660e8a5628d0879a645f0ddd7bc217

my fork of honk

views/zonkers.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>
 5<form action="/zonkzonk" method="POST">
 6<span class="title">it's zonking time!</span>
 7<input type="hidden" name="CSRF" value="{{ .ZonkCSRF }}">
 8<p>
 9<input tabindex=1 type="text" name="name" value="" autocomplete=off> - name
10<p>
11<input type="radio" id="iszonker" name="wherefore" value="zonker">
12<label for="iszonker">Zonker</label>
13<p>
14<input type="radio" id="iszurl" name="wherefore" value="zurl">
15<label for="iszurl">Zurl</label>
16<p>
17<input type="radio" id="iszonvoy" name="wherefore" value="zonvoy">
18<label for="iszonvoy">Zonvoy</label>
19<p>
20<input type="radio" id="iszword" name="wherefore" value="zword">
21<label for="iszword">Zword</label>
22<p><br><input tabindex=1 type="submit" name="zonk" value="zonk!">
23</form>
24</div>
25{{ $zonkcsrf := .ZonkCSRF }}
26{{ range .Zonkers }}
27<section class="honk">
28<p>What: {{ .Name }}
29<p>Where: {{ .Wherefore }}
30<form action="/zonkzonk" method="POST">
31<input type="hidden" name="CSRF" value="{{ $zonkcsrf }}">
32<input type="hidden" name="zonkerid" value="{{ .ID }}">
33<input type="hidden" name="itsok" value="iforgiveyou">
34<input type="submit" name="pardon" value="pardon">
35</form>
36<p>
37</section>
38{{ end }}
39</main>