all repos — honk @ 254d2ab513a185cb1457835fbd0d01e6befdb97b

my fork of honk

views/honkform.html (view raw)

 1<p id="honkformhost">
 2<button id="honkingtime" {{ if .IsPreview }}class="hide"{{ end }}><a href="/newhonk">it's honking time</a></button>
 3<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}class="hide"{{ end }}>
 4<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
 5<input type="hidden" name="updatexid" id="updatexidinput" value = "{{ .UpdateXID }}">
 6<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
 7<h3>let's make some noise</h3>
 8<p>
 9<details>
10<summary>more options</summary>
11<p>
12<label class=button id="donker">attach: <input type="file" multiple name="donk"><span>{{ .SavedFile }}</span></label><input type="hidden" id="saveddonkxid" name="donkxid" value="{{ .SavedFile }}">
13<p id="donkdescriptor"><label for=donkdesc>description:</label><br>
14<input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
15{{ with .SavedPlace }}
16<p><button id=checkinbutton type=button>assassination coordinates</button>
17<div id=placedescriptor>
18	<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="{{ .Name }}">
19	<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="{{ .Url }}">
20	<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="{{ .Latitude}}">
21	<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="{{ .Longitude }}">
22</div>
23{{ else }}
24<p><button id=checkinbutton type=button>assassination coordinates</button>
25<div id=placedescriptor class="hide">
26<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="">
27<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="">
28<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="">
29<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="">
30</div>
31{{ end }}
32<p><button id=addtimebutton type=button>add time</button>
33<div id=timedescriptor class="{{ or .ShowTime "hide" }}">
34<p><label for=timestart>start:</label><br>
35<input type="text" name="timestart" value="{{ .StartTime }}">
36<p><label for=timeend>duration:</label><br>
37<input type="text" name="timeend" value="{{ .Duration }}">
38</div>
39<svg class="emuload" id="emuload" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mood-neutral" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
40<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
41<circle cx="12" cy="12" r="9"></circle>
42<line x1="9" y1="10" x2="9.01" y2="10"></line>
43<line x1="15" y1="10" x2="15.01" y2="10"></line>
44</svg>
45<div id="emupicker">
46</div>
47</details>
48<p>
49<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
50<p class="buttonarray">
51<button>it's gonna be honked</button>
52<button name="preview" value="preview">preview</button>
53<button type=button name="cancel" value="cancel">cancel</button>
54</form>