From baebd89329964ae04290c1eedffa3442399b5121 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 25 Oct 2022 04:33:19 +0100 Subject: [PATCH] add mulit-file upload form to /danger/snapshots.html template. This commit is just the front-end. The back-end, at time of this commit has not been implemented. The form allows users to upload 'Snapshots' to the website -- with the intention of then restoring the website from that back-up. --- templates/danger/snapshots.html | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/templates/danger/snapshots.html b/templates/danger/snapshots.html index 2fcfbe7..e5e6675 100644 --- a/templates/danger/snapshots.html +++ b/templates/danger/snapshots.html @@ -34,6 +34,47 @@ +
+
+ + + +
+
+ +

+ Note: + + If you see a 'successful upload' alert message, after using the + Multi-File Upload box above, you might not see any Snapshots + appear down below. This is because you can upload multiple files + at once. + + + The website will ignore any files which have the same name + as any of the Snapshots below or are not a .zip file. + + + The system is relaying how the upload went and not the + validity of the files you uploaded. In other words, the website + recognised the files you uploaded and their file-types; It just + ignored the 'irrelevant' ones. + +

+
{% for item in snapshots %}