all repos — honk @ 15d6fd92771656efcc2b09feb9e1cba2b3333fd4

my fork of honk

views/zonkers.html (view raw)

 1{{ template "header.html" . }}
 2<div class="center">
 3<div class="info">
 4<p>
 5<form action="/killitwithfire" method="POST">
 6<span class="title">kill another zonker</span>
 7<input type="hidden" name="CSRF" value="{{ .KillCSRF }}">
 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><input tabindex=1 type="submit" name="kill" value="kill">
20</form>
21</div>
22{{ $killcsrf := .KillCSRF }}
23{{ range .Zonkers }}
24<div class="honk">
25<p>What: {{ .Name }}
26<p>Where: {{ .Wherefore }}
27<form action="/killitwithfire" method="POST">
28<input type="hidden" name="CSRF" value="{{ $killcsrf }}">
29<input type="hidden" name="zonkerid" value="{{ .ID }}">
30<input type="hidden" name="itsok" value="iforgiveyou">
31<input type="submit" name="pardon" value="pardon">
32</form>
33<p>
34</div>
35{{ end }}
36</div>
37</div>