honk/views/zonkers.html

40 lines
1.2 KiB
HTML
Raw Normal View History

{{ template "header.html" . }}
<main>
<div class="info">
<p>
2019-06-02 04:58:46 +02:00
<form action="/zonkzonk" method="POST">
<span class="title">it's zonking time!</span>
<input type="hidden" name="CSRF" value="{{ .ZonkCSRF }}">
<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>
2019-06-24 04:21:59 +02:00
<input type="radio" id="iszomain" name="wherefore" value="zomain">
<label for="iszomain">Zomain</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>
2019-06-24 04:21:59 +02:00
<input type="radio" id="iszord" name="wherefore" value="zord">
<label for="iszord">Zord</label>
2019-06-02 04:58:46 +02:00
<p><br><input tabindex=1 type="submit" name="zonk" value="zonk!">
</form>
</div>
2019-06-02 04:58:46 +02:00
{{ $zonkcsrf := .ZonkCSRF }}
{{ range .Zonkers }}
<section class="honk">
<p>What: {{ .Name }}
<p>Where: {{ .Wherefore }}
2019-06-02 04:58:46 +02:00
<form action="/zonkzonk" method="POST">
<input type="hidden" name="CSRF" value="{{ $zonkcsrf }}">
<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>