all repos — honk @ f7bd1d575517bc3e6c312d5a1f112323c2207673

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>latitude: <input type="text" name="placelat" id=placelatinput value="">
17<p>longitude: <input type="text" name="placelong" id=placelonginput value="">
18</div>
19<p>
20<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
21<p>
22<input type="submit" value="it's gonna be honked">
23<input type="submit" name="preview" value="preview">
24</form>