all repos — honk @ 41880bf8f0c1c4ff0c34331c01fd725bd449d63f

my fork of honk

views/honkers.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>
 5<form action="/savehonker" method="POST">
 6<span class="title">add new honker</span>
 7<input type="hidden" name="CSRF" value="{{ .HonkerCSRF }}">
 8<p><input tabindex=1 type="text" name="name" value="" autocomplete=off> - name
 9<p><input tabindex=1 type="text" name="url" value="" autocomplete=off> - url
10<p><span><label for="peep">just peeping:</label>
11<input tabindex=1 type="checkbox" id="peep" name="peep" value="peep"><span></span></span>
12<p><input tabindex=1 type="submit" name="add honker" value="add honker">
13</form>
14</div>
15{{ $honkercsrf := .HonkerCSRF }}
16{{ range .Honkers }}
17<section class="honk">
18<header>
19<img alt="avatar" src="/a?a={{ .XID }}">
20<p style="font-size: 1.8em"><a href="/h/{{ .Name }}">{{ .Name }}<a>
21</header>
22<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
23<p>flavor: {{ .Flavor }}
24<form action="/savehonker" method="POST">
25<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
26<input type="hidden" name="honkerid" value="{{ .ID }}">
27<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
28<p>depart: <input type="text" name="goodbye" placeholder="press F" value="" autocomplete=off>
29<p><input type="submit" name="save" value="save">
30</form>
31</section>
32{{ end }}
33</main>