all repos — honk @ 7a480bfe227cf390f662f72b843eba3d4849ec3a

my fork of honk

views/honkers.html (view raw)

 1{{ template "header.html" . }}
 2<script src="/misc.js{{ .MiscJSParam }}" defer></script>
 3<main>
 4<div class="info">
 5<p>
 6<form action="/submithonker" method="POST">
 7<h3>add new honker</h3>
 8<input type="hidden" name="CSRF" value="{{ .HonkerCSRF }}">
 9<p><label for=url>url:</label><br>
10<input tabindex=1 type="text" name="url" value="" autocomplete=off>
11<p><label for=name>name:</label><br>
12<input tabindex=1 type="text" name="name" value="" placeholder="optional" autocomplete=off>
13<p><label for=combos>combos:</label><br>
14<input tabindex=1 type="text" name="combos" value="" placeholder="optional">
15<p><span><label class=button for="peep">skip subscribe:
16<input tabindex=1 type="checkbox" id="peep" name="peep" value="peep"><span></span></label></span>
17<p><label for="notes">notes:</label><br>
18<textarea tabindex=1 name="notes">
19</textarea>
20<p><button tabindex=1 name="add honker" value="add honker">add honker</button>
21</form>
22</div>
23{{ $honkercsrf := .HonkerCSRF }}
24<div class="info">
25<p><button class="expand">expand</button>
26</div>
27{{ range .Honkers }}
28<section class="honk">
29<header>
30<img alt="avatar" src="/a?a={{ .XID }}">
31<p class="font18em"><a href="/h/{{ .Name }}">{{ .Name }}</a>
32</header>
33<p>
34<details>
35<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
36<p>flavor: {{ .Flavor }}
37<form action="/submithonker" method="POST">
38<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
39<input type="hidden" name="honkerid" value="{{ .ID }}">
40<p>name: <input type="text" name="name" value="{{ .Name }}">
41<p><label for="notes">notes:</label><br>
42<textarea name="notes">{{ .Meta.Notes }}</textarea>
43<p>combos: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
44<p>
45<button name="save" value="save">save</button>
46<button name="sub" value="sub">(re)sub</button>
47<button name="unsub" value="unsub">unsub</button>
48<button name="delete" value="delete">delete</button>
49</form>
50</details>
51<p>
52</section>
53{{ end }}
54</main>