2019-04-09 13:59:33 +02:00
|
|
|
{{ template "header.html" . }}
|
|
|
|
<div class="center">
|
|
|
|
<div class="info">
|
|
|
|
<p>
|
|
|
|
<form action="/savehonker" method="POST">
|
|
|
|
<span class="title">add new honker</span>
|
|
|
|
<input type="hidden" name="CSRF" value="{{ .HonkerCSRF }}">
|
|
|
|
<p><input tabindex=1 type="text" name="name" value="" autocomplete=off> - name
|
|
|
|
<p><input tabindex=1 type="text" name="url" value="" autocomplete=off> - url
|
|
|
|
<p><span><label for="peep">just peeping:</label>
|
|
|
|
<input tabindex=1 type="checkbox" id="peep" name="peep" value="peep"><span></span></span>
|
|
|
|
<p><input tabindex=1 type="submit" name="add honker" value="add honker">
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-04-22 23:03:55 +02:00
|
|
|
{{ $honkercsrf := .HonkerCSRF }}
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ range .Honkers }}
|
2019-04-22 23:03:55 +02:00
|
|
|
<form action="/savehonker" method="POST" class="honk">
|
|
|
|
<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
|
|
|
|
<input type="hidden" name="honkerid" value="{{ .ID }}">
|
|
|
|
<p>name: {{ .Name }}
|
2019-04-09 13:59:33 +02:00
|
|
|
<p>url: {{ .XID }}
|
|
|
|
<p>flavor: {{ .Flavor }}
|
2019-04-22 23:03:55 +02:00
|
|
|
<p><a href="/h/{{ .Name }}">honks</a>
|
|
|
|
<p>combos:{{ range .Combos }} <a href="/c/{{ . }}">{{ . }}</a>{{ end }}
|
|
|
|
<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
|
|
|
|
<p><input type="submit" name="save" value="save">
|
|
|
|
</form>
|
2019-04-09 13:59:33 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|