50 lines
2.8 KiB
HTML
50 lines
2.8 KiB
HTML
<p id="honkformhost">
|
|
<button id="honkingtime" onclick="return showhonkform();" {{ if .IsPreview }}style="display:none"{{ end }}><a href="/newhonk">it's honking time</a></button>
|
|
<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}style="display: none"{{ end }}>
|
|
<input type="hidden" name="CSRF" value="{{ .HonkCSRF }}">
|
|
<input type="hidden" name="updatexid" id="updatexidinput" value = "{{ .UpdateXID }}">
|
|
<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
|
|
<h3>let's make some noise</h3>
|
|
<p>
|
|
<details>
|
|
<summary>more options</summary>
|
|
<p>
|
|
<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 }}">
|
|
<p id="donkdescriptor"><label for=donkdesc>description:</label><br>
|
|
<input type="text" name="donkdesc" value="{{ .DonkDesc }}" autocomplete=off>
|
|
{{ 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 }}
|
|
<p><button id=checkinbutton type=button onclick="fillcheckin()">checkin</button>
|
|
<div id=placedescriptor style="display: none">
|
|
<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="">
|
|
</div>
|
|
{{ end }}
|
|
<p><button id=addtimebutton type=button onclick="showelement('timedescriptor')">add time</button>
|
|
<div id=timedescriptor style="{{ or .ShowTime "display: none" }}">
|
|
<p><label for=timestart>start:</label><br>
|
|
<input type="text" name="timestart" value="{{ .StartTime }}">
|
|
<p><label for=timeend>duration:</label><br>
|
|
<input type="text" name="timeend" value="{{ .Duration }}">
|
|
</div>
|
|
<p><label for=mentions>to:</label><br>
|
|
<input type="text" name="mentions" id=mentions value="{{ .Mentions }}">
|
|
</details>
|
|
<p>
|
|
<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
|
|
<p class="buttonarray">
|
|
<button>it's gonna be honked</button>
|
|
<button name="preview" value="preview">preview</button>
|
|
<button type=button name="cancel" value="cancel" onclick="cancelhonking()">cancel</button>
|
|
</form>
|