59 lines
1.6 KiB
HTML
59 lines
1.6 KiB
HTML
{{define "title"}}new paste — paste.ridgwaysystems.org{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="page-header">
|
|
<h1>new paste</h1>
|
|
</div>
|
|
|
|
{{if .Error}}
|
|
<div class="form-error">{{.Error}}</div>
|
|
{{end}}
|
|
|
|
<form method="POST" action="/new" class="paste-form">
|
|
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
|
|
|
<div class="form-row">
|
|
<label for="title">title</label>
|
|
<input type="text" id="title" name="title" placeholder="Untitled" autocomplete="off">
|
|
</div>
|
|
|
|
<div class="paste-form-meta">
|
|
<div class="form-row">
|
|
<label for="language">language</label>
|
|
<select id="language" name="language">
|
|
{{range .Languages}}
|
|
<option value="{{.}}">{{.}}</option>
|
|
{{end}}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<label for="expiry">expires</label>
|
|
<select id="expiry" name="expiry">
|
|
<option value="never">never</option>
|
|
<option value="1h">1 hour</option>
|
|
<option value="1d">1 day</option>
|
|
<option value="7d">7 days</option>
|
|
<option value="30d">30 days</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<label class="form-check">
|
|
<input type="checkbox" name="unlisted">
|
|
unlisted (not shown in public index)
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<label for="body">paste</label>
|
|
<textarea id="body" name="body" class="paste-textarea" placeholder="Paste your code here..." spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" required></textarea>
|
|
</div>
|
|
|
|
<div class="editor-footer">
|
|
<button type="submit" class="btn">create paste</button>
|
|
</div>
|
|
</form>
|
|
{{end}}
|