aboutsummaryrefslogtreecommitdiff
path: root/templates/user.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user.html')
-rw-r--r--templates/user.html55
1 files changed, 31 insertions, 24 deletions
diff --git a/templates/user.html b/templates/user.html
index 5e0aa57..f37c2fb 100644
--- a/templates/user.html
+++ b/templates/user.html
@@ -2,34 +2,41 @@
{{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>
- <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">
- </td>
- <td>
- <a href="{{.Link}}">{{.Name}}</a>
- </td>
- <td>
- {{.ModTime}}
- </td>
- <td>
- {{.Size}}
- </td>
- </tr>
- {{end}}
- </table>
+ <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}}