honk/views/zonkers.html

40 lines
1.2 KiB
HTML
Raw Normal View History

{{ template "header.html" . }}
<main>
<div class="info">
<p>
<form action="/killitwithfire" method="POST">
<span class="title">kill another zonker</span>
<input type="hidden" name="CSRF" value="{{ .KillCSRF }}">
<p>
<input tabindex=1 type="text" name="name" value="" autocomplete=off> - name
<p>
<input type="radio" id="iszonker" name="wherefore" value="zonker">
<label for="iszonker">Zonker</label>
<p>
<input type="radio" id="iszurl" name="wherefore" value="zurl">
<label for="iszurl">Zurl</label>
<p>
<input type="radio" id="iszonvoy" name="wherefore" value="zonvoy">
<label for="iszonvoy">Zonvoy</label>
2019-05-31 00:29:59 +02:00
<p>
<input type="radio" id="iszword" name="wherefore" value="zword">
<label for="iszword">Zword</label>
<p><input tabindex=1 type="submit" name="kill" value="kill">
</form>
</div>
{{ $killcsrf := .KillCSRF }}
{{ range .Zonkers }}
<section class="honk">
<p>What: {{ .Name }}
<p>Where: {{ .Wherefore }}
<form action="/killitwithfire" method="POST">
<input type="hidden" name="CSRF" value="{{ $killcsrf }}">
<input type="hidden" name="zonkerid" value="{{ .ID }}">
<input type="hidden" name="itsok" value="iforgiveyou">
<input type="submit" name="pardon" value="pardon">
</form>
<p>
</section>
{{ end }}
</main>