From d0ff0c812b8b123809bef2be04dde27aea9c524f Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 20 Sep 2022 19:23:25 +0100 Subject: [PATCH] update storage and dashboard HTML templates (add & get features). --- templates/user/dashboard.html | 29 +++++++++--------- templates/user/storage.html | 55 +++++++++++++++++++++++------------ 2 files changed, 53 insertions(+), 31 deletions(-) diff --git a/templates/user/dashboard.html b/templates/user/dashboard.html index 25fb9cb..562ef4d 100644 --- a/templates/user/dashboard.html +++ b/templates/user/dashboard.html @@ -12,20 +12,23 @@
-

File Upload

-
- - - - -
+

File Upload

+
+ + + + + + +
-
- - - - -
+
+ + +

Warning: This will overwrite any files stored on the server with the same name.

+ + +
{% endblock %} diff --git a/templates/user/storage.html b/templates/user/storage.html index d397271..07f2117 100644 --- a/templates/user/storage.html +++ b/templates/user/storage.html @@ -1,27 +1,46 @@ {% extends "layouts/default.html" %} {% block title %}Manage you archive.{% endblock %} {% block content %} -

Storage

- -{% for item in files %} -{{item}} -{% endfor %} +

Storage Files

-

File Upload

-
- - - - -
+

File Upload

+
+ + + + + + +
+ +
+ + +

Warning: This will overwrite any files stored on the server with the same name.

+ + +
+
-
- - - - -
+{% for item in files %} +
+

+ + {{item.name}} + {% if roles.administrator %} +

+ + + +
+
+ + +
+ {% endif %} +

+{% endfor %} {% endblock %}