all repos — honk @ ed28d731aad0057cfa6431f6ca57816f2687305c

my fork of honk

views/honkform.html (view raw)

 1<p id="honkformhost">
 2<button onclick="showhonkform(); return false"><a href="/newhonk">it's honking time</a></button>
 3<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" style="display: none">
 4<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
 5<input type="hidden" name="updatexid" 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: {{ if .SavedFile }} {{ .SavedFile }} {{ else }} <input onchange="updatedonker();" type="file" name="donk"><span></span> {{ end }}</label>
13<input type="hidden" 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<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
17<div id=placedescriptor style="display: none">
18<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="">
19<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="">
20<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="">
21<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="">
22</div>
23<p><button id=addtimebutton type=button onclick="showelement('timedescriptor')">add time</button>
24<div id=timedescriptor style="display: none">
25<p><label for=timestart>start:</label><br>
26<input type="text" name="timestart" value="">
27<p><label for=timeend>duration:</label><br>
28<input type="text" name="timeend" value="">
29</div>
30</details>
31<p>
32<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
33<p>
34<button>it's gonna be honked</button>
35<button name="preview" value="preview">preview</button>
36</form>