source: code/trunk/example/templates/index.html@ 57

Last change on this file since 57 was 51, checked in by dev, 4 years ago

Reuse index.html template for file upload

File size: 1.3 KB
Line 
1<!DOCTYPE HTML>
2<html>
3<head>
4 <meta charset="utf-8">
5 <meta name="author" content="z3bra">
6 <meta name="robots" content="noindex,nofollow" />
7 <meta name="viewport" content="width=device-width">
8 <link rel="stylesheet" type="text/css" href="/partage.css" />
9 <link rel="icon" type="image/ico" href="/favicon.ico" />
10 <title>Partage</title>
11</head>
12<body>
13 <header>
14 <img id="logo" src="/partage.png" />
15 <h1>partage</h1>
16 </header>
17 <form enctype="multipart/form-data" method="post">
18 <div id="dropzone"></div>
19 <div id="fallbackform" class="dropzone">
20 <input id="filebox" name="file" type="file" multiple/>
21 <input id="output" name="output" type="hidden" value='html' />
22 <input type="submit" value="Upload"/>
23 </div>
24 <section id="formsettings">
25 <label for="expiry"> Destroy after </label>
26 <select id="expiry" name="expiry">
27 <option value="900"> 15 minutes </option>
28 <option value="3600"> 1 hour </option>
29 <option value="28800"> 8 hours </option>
30 <option value="86400" selected> 1 day </option>
31 <option value="604800"> 1 week </option>
32 </select>
33 </section>
34 </form>
35 <p>File size limited to {{.Maxsize}}.</p>
36 <div id="uploads">{{if .Links}}
37 <ul>
38 {{range .Links}}<li><a href="{{.}}">{{.}}</a></li>{{end}}
39 </ul>
40 {{end}}</div>
41</body>
42</html>
Note: See TracBrowser for help on using the repository browser.