From c958bc86212202eefdbcd65575cc70c38051ac2c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 22 Oct 2022 22:49:57 +0100 Subject: [PATCH] create and populate /danger/manage-db-entries.html template. This template has the CSS and HTML already included with this commit. It's usable but I'm guessing it will need tweaking when the site gets closer to going into production. --- templates/danger/manage-db-entries.html | 111 ++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 templates/danger/manage-db-entries.html diff --git a/templates/danger/manage-db-entries.html b/templates/danger/manage-db-entries.html new file mode 100644 index 0000000..53ac12d --- /dev/null +++ b/templates/danger/manage-db-entries.html @@ -0,0 +1,111 @@ +{% extends "layouts/default.html" %} +{% block title %}Nicola Ellis & Ritherdon Archive{% endblock %} +{% block content %} +
+

Delete Database Entries

+

+ Warning: Deleting entries from the database might leave + the site's in an un-recoverable state. +

+

Archive Files

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

{{item.title}}

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

Pages Files

+
+ {% for item in pages-entries %} +
+ {% if roles.administrator %} + {% if item.can-delete == 1 %} +
+ + + + +
+

{{item.title}}

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

Storage Files

+
+ {% for item in storage-entries %} +
+ {% if roles.administrator %} +
+ + + + +
+

{{item.name}}

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