summaryrefslogtreecommitdiff
path: root/templates/pages/index.gohtml
blob: 8cfcae152b66c8746f71355349ea50d4ff826ba4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{template "layout.gohtml" .}}
{{define "content"}}
<div class="layout-center">
    <form method="POST" action="/save">
        <h1>New secret</h1>
        <label for="secret">Secret content:<span class="required">(required)</span></label>
        <textarea id="secret" name="secret" rows="6" required></textarea>
        <label><span>Expires after (or <b>first</b> read):</span><span class="required">(required)</span></label>
        <div class="form-row">
            <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>
        </div>
        {{/* <label for="pin">Pin code to open:<span class="optional">(optional)</span></label> */}}
        {{/* <input id="pin" name="pin" type="string" value="" /> */}}
        <hr />
        <input type="hidden" name="csrf" value={{.csrf}} />
        <input type="submit" value="Send" />
    </form>
</div>
{{ end }}