honk/views/honkform.html

56 lines
3.0 KiB
HTML
Raw Normal View History

<p id="honkformhost">
<button id="honkingtime" {{ if .IsPreview }}class="hide"{{ end }}><a href="/newhonk">it's honking time</a></button>
<form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}class="hide"{{ 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 }}">
<input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}">
2019-10-08 08:06:09 +02:00
<h3>let's make some noise</h3>
<p>
<details>
<summary>more options</summary>
<p>
<label class=button id="donker">attach: <input type="file" multiple 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>
{{ with .SavedPlace }}
<p><button id=checkinbutton type=button>assassination coordinates</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>assassination coordinates</button>
<div id=placedescriptor class="hide">
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>
{{ end }}
<p><button id=addtimebutton type=button>add time</button>
<div id=timedescriptor class="{{ or .ShowTime "hide" }}">
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 }}">
</div>
<svg class="emuload" id="emuload" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mood-neutral" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="12" cy="12" r="9"></circle>
<line x1="9" y1="10" x2="9.01" y2="10"></line>
<line x1="15" y1="10" x2="15.01" y2="10"></line>
</svg>
<div id="emupicker">
</div>
</details>
2019-06-02 20:51:02 +02:00
<p>
<textarea name="noise" id="honknoise">{{ .Noise }}</textarea>
2019-10-23 06:22:19 +02:00
<p class="buttonarray">
<button>it's gonna be honked</button>
<button name="preview" value="preview">preview</button>
<button type=button name="cancel" value="cancel">cancel</button>
2019-04-09 13:59:33 +02:00
</form>