aboutsummaryrefslogtreecommitdiff
path: root/templates/user.html
blob: f37c2fbd007ad434b9e191ea993f9007c99b900c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{define "title"}}Acceuil{{end}}
{{define "content"}}
<h1>Espace utilisateur</h1>
<h2>Documents</h2>
{{if .Error}}
<p class="error">{{.Error}}</p>
{{end}}
<div>
	<form action="/upload" method="POST" enctype="multipart/form-data">
		<input type="file" name="files" multiple />
		<input type="submit" value="Upload" />
	</form>
	<form action="/download" method="POST">
		<table>
			<tr>
				<th></th>
				<th>Nom du fichier</th>
				<th>Date de modification</th>
				<th>Taille</th>
			</tr>
			{{range .Docs}}
			<tr>
				<td>
					<input type="checkbox" name="selection" value="{{.Link}}">
				</td>
				<td>
					<a href="{{.Link}}">{{.Name}}</a>
				</td>
				<td>
					{{.ModTime}}
				</td>
				<td>
					{{.Size}}
				</td>
			</tr>
			{{end}}
		</table>
		<br/>
		<input type="submit" value="Télécharger les fichiers sélectionnés">
	</form>
</div>
{{end}}