34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
<p id="honkformhost">
|
|
<button onclick="showhonkform(); return false"><a href="/newhonk">it's honking time</a></button>
|
|
<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" style="display: none">
|
|
<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
|
|
<input type="hidden" name="updatexid" value = "{{ .UpdateXID }}">
|
|
<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
|
|
<p>
|
|
<details>
|
|
<summary>more options</summary>
|
|
<p>
|
|
<label id="donker">attach: {{ if .SavedFile }} {{ .SavedFile }} {{ else }} <input onchange="updatedonker();" type="file" name="donk"><span></span> {{ end }}</label>
|
|
<input type="hidden" name="donkxid" value="{{ .SavedFile }}">
|
|
<p id="donkdescriptor">
|
|
desc: <input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
|
|
<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
|
|
<div id=placedescriptor style="display: none">
|
|
<p>name: <input type="text" name="placename" id=placenameinput value="">
|
|
<p>url: <input type="text" name="placeurl" id=placeurlinput value="">
|
|
<p>lat: <input type="text" size=9 name="placelat" id=placelatinput value="">
|
|
lon: <input type="text" size=9 name="placelong" id=placelonginput value="">
|
|
</div>
|
|
<p><button id=addtimebutton type=button onclick="showelement('timedescriptor')">add time</button>
|
|
<div id=timedescriptor style="display: none">
|
|
<p>start: <input type="text" name="timestart" value="">
|
|
<p>end: <input type="text" name="timeend" value="">
|
|
</div>
|
|
</details>
|
|
<p>
|
|
<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
|
|
<p>
|
|
<button>it's gonna be honked</button>
|
|
<button name="preview" value="preview">preview</button>
|
|
</form>
|