From 1afd527efe4e2a1a481b9cf52cdd915356b1d58a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 3 Aug 2024 17:24:35 +0100 Subject: Adds ability to update the thumbnail/feature images --- .../templates/resources/update_thumbnails.html | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pyblackbird_cc/templates/resources/update_thumbnails.html (limited to 'pyblackbird_cc/templates/resources/update_thumbnails.html') diff --git a/pyblackbird_cc/templates/resources/update_thumbnails.html b/pyblackbird_cc/templates/resources/update_thumbnails.html new file mode 100644 index 0000000..e473a00 --- /dev/null +++ b/pyblackbird_cc/templates/resources/update_thumbnails.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% load static %} +{% load crispy_forms_tags %} + +{% block content %} +
+
+

Update feature images for {{ resource.name }} resource

+ +

The current thumbnails for this resource are:

+ +
    + {% for t in resource.thumbnail_filenames %} +
  • {{ t }}
  • + {% endfor %} +
+ +
+ {% csrf_token %} + {% crispy form form.helper %} +
+ + +
+
+ + +{% endblock %} -- cgit v1.2.3