summaryrefslogtreecommitdiff
path: root/templates/pages/index.gohtml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pages/index.gohtml')
-rw-r--r--templates/pages/index.gohtml21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/pages/index.gohtml b/templates/pages/index.gohtml
new file mode 100644
index 0000000..8cfcae1
--- /dev/null
+++ b/templates/pages/index.gohtml
@@ -0,0 +1,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 }}