all repos — honk @ 44e881ea47f19119393cfa2d8b6bebf5463f1818

my fork of honk

views/honkers.html (view raw)

 1{{ template "header.html" . }}
 2<div class="center">
 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<form action="/savehonker" method="POST" class="honk">
18<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
19<input type="hidden" name="honkerid" value="{{ .ID }}">
20<p>name: {{ .Name }}
21<p>url: {{ .XID }}
22<p>flavor: {{ .Flavor }}
23<p><a href="/h/{{ .Name }}">honks</a>
24<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }}
25<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
26<p><input type="submit" name="save" value="save">
27</form>
28{{ end }}
29</div>
30</div>