aboutsummaryrefslogtreecommitdiff
path: root/v0.9.5/views/i18n/honkers.html
diff options
context:
space:
mode:
authorMiquel Lionel <lionelmiquel@sfr.fr>2021-02-17 13:48:13 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-02-17 13:48:13 +0100
commit2430bf57c22948e66b2c918d324d6e0bff4f6792 (patch)
tree0d79e5d8b5780d6c8d625de50d784a7da3a2a26b /v0.9.5/views/i18n/honkers.html
parent19cfd918aa30f316754b118278fc6853d7b8e04b (diff)
downloadhonk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.tar.gz
honk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.zip
add i18n'd html templates, newer patch for web.go
Diffstat (limited to 'v0.9.5/views/i18n/honkers.html')
-rw-r--r--v0.9.5/views/i18n/honkers.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/v0.9.5/views/i18n/honkers.html b/v0.9.5/views/i18n/honkers.html
new file mode 100644
index 0000000..5b9ecf4
--- /dev/null
+++ b/v0.9.5/views/i18n/honkers.html
@@ -0,0 +1,62 @@
+{{ template "header.html" . }}
+<main>
+{{ $i18n := .i18n }}
+<div class="info">
+<p>
+<form action="/submithonker" method="POST">
+<h3>{{ $i18n.AddNewHonker }}</h3>
+<input type="hidden" name="CSRF" value="{{ .HonkerCSRF }}">
+<p><label for=url>url:</label><br>
+<input tabindex=1 type="text" name="url" value="" autocomplete=off>
+<p><label for=name>{{ $i18n.Name }}:</label><br>
+<input tabindex=1 type="text" name="name" value="" placeholder="{{ $i18n.Optional }}" autocomplete=off>
+<p><label for=combos>{{ $i18n.Combos }}:</label><br>
+<input tabindex=1 type="text" name="combos" value="" placeholder="{{ $i18n.Optional }}">
+<p><span><label class=button for="peep">{{ $i18n.SkipSub }}:
+<input tabindex=1 type="checkbox" id="peep" name="peep" value="peep"><span></span></label></span>
+<p><label for="notes">notes:</label><br>
+<textarea tabindex=1 name="notes">
+</textarea>
+<p><button tabindex=1 name="add honker" value="add honker">{{ $i18n.AddHonkerBtn }}</button>
+</form>
+</div>
+{{ $honkercsrf := .HonkerCSRF }}
+<div class="info">
+<script>
+function expandstuff() {
+ var els = document.querySelectorAll(".honk details")
+ for (var i = 0; i < els.length; i++) {
+ els[i].open = true
+ }
+}
+</script>
+<p><button onclick="expandstuff()">{{ $i18n.Expand }}</button>
+</div>
+{{ range .Honkers }}
+<section class="honk">
+<header>
+<img alt="avatar" src="/a?a={{ .XID }}">
+<p style="font-size: 1.8em"><a href="/h/{{ .Name }}">{{ .Name }}<a>
+</header>
+<p>
+<details>
+<p>url: <a href="{{ .XID }}" rel=noreferrer>{{ .XID }}</a>
+<p>{{ $i18n.Flavor }}: {{ .Flavor }}
+<form action="/submithonker" method="POST">
+<input type="hidden" name="CSRF" value="{{ $honkercsrf }}">
+<input type="hidden" name="honkerid" value="{{ .ID }}">
+<p>{{ $i18n.Name }}: <input type="text" name="name" value="{{ .Name }}">
+<p><label for="notes">{{ $i18n.Notes }}:</label><br>
+<textarea name="notes">{{ .Meta.Notes }}</textarea>
+<p>{{ $i18n.Combos }}: <input type="text" name="combos" value="{{ range .Combos }}{{ . }} {{end}}">
+<p>
+<button name="save" value="save">{{ $i18n.Save }}</button>
+<button name="sub" value="sub">{{ $i18n.Resub }}</button>
+<button name="unsub" value="unsub">{{ $i18n.Unsub }}</button>
+<button name="delete" value="delete">{{ $i18n.Delete }}</button>
+</form>
+</details>
+<p>
+</section>
+{{ end }}
+</main>