all repos — honk @ 30e1f606f1c5ab61d146ccc14d44f7f7570f3f8b

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<p>
 5in reply to: <input type="text" name="rid" id="ridinput" value="{{ .InReplyTo }}" autocomplete=off>
 6<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
 7<input type="hidden" name="updatexid" value = "{{ .UpdateXID }}">
 8<p>
 9<label id="donker">attach: {{ if .SavedFile }} {{ .SavedFile }} {{ else }} <input onchange="updatedonker();" type="file" name="donk"><span></span> {{ end }}</label>
10<input type="hidden" name="donkxid" value="{{ .SavedFile }}">
11<p id="donkdescriptor">
12description: <input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
13<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
14<div id=placedescriptor style="display: none">
15<p>name: <input type="text" name="placename" id=placenameinput value="">
16<p>url: <input type="text" name="placeurl" id=placeurlinput value="">
17<p>latitude: <input type="text" name="placelat" id=placelatinput value="">
18<p>longitude: <input type="text" name="placelong" id=placelonginput value="">
19</div>
20<p>
21<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
22<p>
23<input type="submit" value="it's gonna be honked">
24<input type="submit" name="preview" value="preview">
25</form>