blob: 6f2bf8722d05af37b8662858d7fb076b26617390 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{{template "layout.gohtml" .}}
{{define "content"}}
<div class="flex content three">
<div class="full off-third-800 third-800">
<form method="POST" action="/save">
<h1>New secret</h1>
<label class="row" for="secret">Secret content:<span class="required">(required)</span></label>
<textarea id="secret" name="secret" rows="6" required></textarea>
<label class="row"><span>Expires after (or <b>first</b> read):</span><span class="required">(required)</span></label>
<fieldset class="flex three">
<label><input id="days" name="days" type="number" value="0" min="0" max="365" required />days</label>
<label><input id="hours" name="hours" type="number" value="0" min="0" max="23" required />hours</label>
<label><input id="minutes" name="minutes" type="number" value="30" min="0" max="59" required />minutes</label>
</fieldset>
{{/* <label for="pin">Pin code to open:<span class="optional">(optional)</span></label> */}}
{{/* <input id="pin" name="pin" type="string" value="" /> */}}
<input type="hidden" name="csrf" value={{.csrf}} />
<input type="submit" value="Send" />
</form>
</div>
</div>
{{ end }}
|