2019-07-06 19:48:31 +02:00
|
|
|
<p id="honkformhost">
|
2019-10-20 21:23:41 +02:00
|
|
|
<button id="honkingtime" onclick="return showhonkform();" {{ if .IsPreview }}style="display:none"{{ end }}><a href="/newhonk">it's honking time</a></button>
|
2019-10-12 16:38:22 +02:00
|
|
|
<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}style="display: none"{{ end }}>
|
2019-04-09 13:59:33 +02:00
|
|
|
<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
|
2019-10-20 21:23:41 +02:00
|
|
|
<input type="hidden" name="updatexid" id="updatexidinput" value = "{{ .UpdateXID }}">
|
2019-09-30 20:17:58 +02:00
|
|
|
<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
|
2019-10-08 08:06:09 +02:00
|
|
|
<h3>let's make some noise</h3>
|
2019-04-11 16:33:05 +02:00
|
|
|
<p>
|
2019-10-03 00:20:14 +02:00
|
|
|
<details>
|
|
|
|
<summary>more options</summary>
|
|
|
|
<p>
|
2019-10-23 06:45:12 +02:00
|
|
|
<label class=button id="donker">attach: <input onchange="updatedonker();" type="file" name="donk"><span>{{ .SavedFile }}</span></label>
|
|
|
|
<input type="hidden" id="saveddonkxid" name="donkxid" value="{{ .SavedFile }}">
|
2019-10-08 08:06:09 +02:00
|
|
|
<p id="donkdescriptor"><label for=donkdesc>description:</label><br>
|
|
|
|
<input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
|
2019-10-23 06:45:12 +02:00
|
|
|
{{ with .SavedPlace }}
|
|
|
|
<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
|
|
|
|
<div id=placedescriptor>
|
|
|
|
<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="{{ .Name }}">
|
|
|
|
<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="{{ .Url }}">
|
|
|
|
<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="{{ .Latitude}}">
|
|
|
|
<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="{{ .Longitude }}">
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
2019-09-28 06:12:50 +02:00
|
|
|
<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
|
|
|
|
<div id=placedescriptor style="display: none">
|
2019-10-08 08:06:09 +02:00
|
|
|
<p><label>name:</label><br><input type="text" name="placename" id=placenameinput value="">
|
|
|
|
<p><label>url:</label><br><input type="text" name="placeurl" id=placeurlinput value="">
|
|
|
|
<p><label>lat: </label><input type="text" size=9 name="placelat" id=placelatinput value="">
|
|
|
|
<label>lon: </label><input type="text" size=9 name="placelong" id=placelonginput value="">
|
2019-09-28 06:12:50 +02:00
|
|
|
</div>
|
2019-10-23 06:45:12 +02:00
|
|
|
{{ end }}
|
2019-10-03 00:20:14 +02:00
|
|
|
<p><button id=addtimebutton type=button onclick="showelement('timedescriptor')">add time</button>
|
2019-12-16 23:49:34 +01:00
|
|
|
<div id=timedescriptor style="{{ or .ShowTime "display: none" }}">
|
2019-10-08 08:06:09 +02:00
|
|
|
<p><label for=timestart>start:</label><br>
|
2019-12-16 23:49:34 +01:00
|
|
|
<input type="text" name="timestart" value="{{ .StartTime }}">
|
2019-10-08 08:06:09 +02:00
|
|
|
<p><label for=timeend>duration:</label><br>
|
2019-12-16 23:49:34 +01:00
|
|
|
<input type="text" name="timeend" value="{{ .Duration }}">
|
2019-10-03 00:20:14 +02:00
|
|
|
</div>
|
2020-02-18 21:45:22 +01:00
|
|
|
<p><label for=mentions>to:</label><br>
|
|
|
|
<input type="text" name="mentions" id=mentions value="{{ .Mentions }}">
|
2019-10-03 00:20:14 +02:00
|
|
|
</details>
|
2019-06-02 20:51:02 +02:00
|
|
|
<p>
|
2019-06-16 20:11:23 +02:00
|
|
|
<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
|
2019-10-23 06:22:19 +02:00
|
|
|
<p class="buttonarray">
|
2019-09-30 20:17:58 +02:00
|
|
|
<button>it's gonna be honked</button>
|
|
|
|
<button name="preview" value="preview">preview</button>
|
2019-10-20 21:06:15 +02:00
|
|
|
<button type=button name="cancel" value="cancel" onclick="cancelhonking()">cancel</button>
|
2019-04-09 13:59:33 +02:00
|
|
|
</form>
|