From 83094a255627d55df2cd96d9c1b0be7a3ea2b198 Mon Sep 17 00:00:00 2001 From: cbdev Date: Mon, 11 Jul 2022 20:46:14 +0200 Subject: Initial admin templates and logic --- interface/admin_delete.tmpl | 35 +++++++++++++++++++++++++++++++++++ interface/admin_dirs.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ interface/admin_files.tmpl | 31 +++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 interface/admin_delete.tmpl create mode 100644 interface/admin_dirs.tmpl create mode 100644 interface/admin_files.tmpl (limited to 'interface') diff --git a/interface/admin_delete.tmpl b/interface/admin_delete.tmpl new file mode 100644 index 0000000..bf6d8a2 --- /dev/null +++ b/interface/admin_delete.tmpl @@ -0,0 +1,35 @@ + + + + + + + cargohold + + + + + + +
+
+ This will delete the directory {{ directory }}. +
+ This directory still contains {{ listing | length }} files. +
+
+ {% for file in listing %} +
+ {{ file.name }} +
+ {% endfor %} +
+ +
+ + diff --git a/interface/admin_dirs.tmpl b/interface/admin_dirs.tmpl new file mode 100644 index 0000000..cebaa62 --- /dev/null +++ b/interface/admin_dirs.tmpl @@ -0,0 +1,40 @@ + + + + + + + cargohold + + + + + + +
+ {% if error %} +
+ {{ error }} +
+ {% endif %} +
+
+ + +
+
+
+ {% for dir in listing %} +
+ {{dir.name}} + Rename + Aliases + Delete +
+ {% endfor %} +
+
+ + diff --git a/interface/admin_files.tmpl b/interface/admin_files.tmpl new file mode 100644 index 0000000..76b63d5 --- /dev/null +++ b/interface/admin_files.tmpl @@ -0,0 +1,31 @@ + + + + + + + cargohold + + + + + + +
+ {% if message %} +
+ {{ message }} +
+ {% endif %} +
+ {% for file in listing %} +
+ {{ file.name }} +
+ {% endfor %} +
+
+ + -- cgit v1.2.3