From 7fc8609aed8262cf05620fc725a0e0217402b8fe Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 22 Oct 2022 22:03:01 +0100 Subject: [PATCH] create and populate the /danger/manage-files.html template. The template is pretty much ready to go with this commit. CSS stuff and data population already added. --- templates/danger/manage-files.html | 109 +++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 templates/danger/manage-files.html diff --git a/templates/danger/manage-files.html b/templates/danger/manage-files.html new file mode 100644 index 0000000..38d2219 --- /dev/null +++ b/templates/danger/manage-files.html @@ -0,0 +1,109 @@ +{% extends "layouts/default.html" %} +{% block title %}Nicola Ellis & Ritherdon Archive{% endblock %} +{% block content %} +
+

Delete Files

+

+ Warning: Deleting files here might leave the site's database + out-of-sync. with the files stored on the server and corrupt the system. +

+

Archive Files

+
+ {% for item in archive-files %} +
+ {% if roles.administrator %} +
+ + + + +
+

{{item}}

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

Pages Files

+
+ {% for item in pages-files %} +
+ {% if roles.administrator %} +
+ + + + +
+

{{item}}

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

Media Files

+
+ {% for item in media-files %} +
+ {% if roles.administrator %} +
+ + + + +
+

{{item}}

+ {% endif %} +
+ {% endfor %} +
+
+{% endblock %}