depot/web/fup/fupstatic/tmpl/paste.html

35 lines
903 B
HTML
Raw Normal View History

2021-03-22 00:25:32 +00:00
{{/*
SPDX-FileCopyrightText: 2021 Luke Granger-Brown <depot@lukegb.com>
SPDX-License-Identifier: Apache-2.0
*/}}
{{define "main"}}
<form action="{{app "upload"}}" method="POST">
<div class="paste-header">
<div class="paste-header-left">
.<input type="text" name="extension" placeholder="txt">
</div>
<select name="expiry" id="expiry">
<option value="" selected>never</option>
<option value="1m">1 minute</option>
<option value="5m">5 minutes</option>
<option value="1h">1 hour</option>
<option value="24h">1 day</option>
<option value="168h">1 week</option>
<option value="672h">4 weeks</option>
<option value="8760h">1 year</option>
</select>
<input type="submit" value="paste">
</div>
<textarea class="paste-content" name="content"></textarea>
</form>
{{end}}
{{define "extra_body_classes" -}}
paste-page
{{- end}}