honk/views/zonkers.html

37 lines
1.1 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>
<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>