all repos — honk @ e8c106c7fd2c8486a7b53f72d3718ff48854fbcd

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">{{ .Name }}
21</header>
22<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
23<p>flavor: {{ .Flavor }}
24<p><a href="/h/{{ .Name }}">honks</a>
25<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }}
26<form action="/savehonker" method="POST">
27<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
28<input type="hidden" name="honkerid" value="{{ .ID }}">
29<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
30<p>depart: <input type="text" name="goodbye" value="" autocomplete=off> (say "goodbye")
31<p><input type="submit" name="save" value="save">
32</form>
33</section>
34{{ end }}
35</main>