all repos — honk @ d3a951e7f475a2650f6b9640fdfe31b53ad21600

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" name="donk"><span>{{ .SavedFile }}</span></label>
13<input type="hidden" id="saveddonkxid" name="donkxid" value="{{ .SavedFile }}">
14<p id="donkdescriptor"><label for=donkdesc>description:</label><br>
15<input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
16{{ with .SavedPlace }}
17<p><button id=checkinbutton type=button>assassination coordinates</button>
18<div id=placedescriptor>
19	<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="{{ .Name }}">
20	<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="{{ .Url }}">
21	<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="{{ .Latitude}}">
22	<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="{{ .Longitude }}">
23</div>
24{{ else }}
25<p><button id=checkinbutton type=button>assassination coordinates</button>
26<div id=placedescriptor class="hide">
27<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="">
28<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="">
29<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="">
30<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="">
31</div>
32{{ end }}
33<p><button id=addtimebutton type=button>add time</button>
34<div id=timedescriptor class="{{ or .ShowTime "hide" }}">
35<p><label for=timestart>start:</label><br>
36<input type="text" name="timestart" value="{{ .StartTime }}">
37<p><label for=timeend>duration:</label><br>
38<input type="text" name="timeend" value="{{ .Duration }}">
39</div>
40<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">
41<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
42<circle cx="12" cy="12" r="9"></circle>
43<line x1="9" y1="10" x2="9.01" y2="10"></line>
44<line x1="15" y1="10" x2="15.01" y2="10"></line>
45</svg>
46<div id="emupicker">
47</div>
48</details>
49<p>
50<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
51<p class="buttonarray">
52<button>it's gonna be honked</button>
53<button name="preview" value="preview">preview</button>
54<button type=button name="cancel" value="cancel">cancel</button>
55</form>