all repos — honk @ bb405e2587bec4acbf533f696a52c40af888c641

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<p>
 8<details>
 9<summary>more options</summary>
10<p>
11<label id="donker">attach: {{ if .SavedFile }} {{ .SavedFile }} {{ else }} <input onchange="updatedonker();" type="file" name="donk"><span></span> {{ end }}</label>
12<input type="hidden" name="donkxid" value="{{ .SavedFile }}">
13<p id="donkdescriptor">
14desc: <input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
15<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
16<div id=placedescriptor style="display: none">
17<p>name: <input type="text" name="placename" id=placenameinput value="">
18<p>url: <input type="text" name="placeurl" id=placeurlinput value="">
19<p>lat: <input type="text" size=9 name="placelat" id=placelatinput value="">
20lon: <input type="text" size=9 name="placelong" id=placelonginput value="">
21</div>
22<p><button id=addtimebutton type=button onclick="showelement('timedescriptor')">add time</button>
23<div id=timedescriptor style="display: none">
24<p>start: <input type="text" name="timestart" value="">
25<p>end: <input type="text" name="timeend" value="">
26</div>
27</details>
28<p>
29<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
30<p>
31<button>it's gonna be honked</button>
32<button name="preview" value="preview">preview</button>
33</form>