summaryrefslogtreecommitdiff
path: root/controller/template/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'controller/template/index.html')
-rw-r--r--controller/template/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/controller/template/index.html b/controller/template/index.html
new file mode 100644
index 0000000..f50be97
--- /dev/null
+++ b/controller/template/index.html
@@ -0,0 +1,28 @@
+{{define "index"}}
+{{template "header" .}}
+<main>
+ <h1>drop.janw.name</h1>
+ <form method="POST" action="/" enctype="multipart/form-data">
+ <div>
+ <label for="file">
+ File:
+ </label>
+ <input id="file" type="file" name="file">
+ </div>
+ <div>
+ <label for="protect">
+ Password Protect:
+ </label>
+ <input id="protect" type="checkbox" name="protect">
+ </div>
+ <div>
+ <label for="until">
+ Available Until:
+ </label>
+ <input id="until" type="datetime-local" name="until">
+ </div>
+ <input type="submit" id="upload" value="Upload">
+ </form>
+</main>
+{{template "footer" .}}
+{{end}}