From 2e2f2d66d6c81f642178979a7797a54cb3d6ec4a Mon Sep 17 00:00:00 2001 From: jessikitty Date: Fri, 2 Oct 2026 19:54:34 +1000 Subject: [PATCH] Add drag-and-drop page organiser template --- app/templates/instructions/organise.html | 468 +++++++++++++++++++++++ 1 file changed, 468 insertions(+) create mode 100644 app/templates/instructions/organise.html diff --git a/app/templates/instructions/organise.html b/app/templates/instructions/organise.html new file mode 100644 index 0000000..d49adf3 --- /dev/null +++ b/app/templates/instructions/organise.html @@ -0,0 +1,468 @@ +{% extends "base.html" %} + +{# Page organiser for image instructions. + Created by: Jess Rogerson (yelling commands at Claude.AI) #} + +{% block title %}Organise Pages - {{ set.set_number }}: {{ set.set_name }}{% endblock %} + +{% block content %} + + +
+
+
+
+ Organise pages +
+ + {{ set.set_number }}: {{ set.set_name }} · + {{ pages|length }} pages + +
+
+ + + + + + Preview + + + Close + +
+
+
+ +
+ {% if not audit.is_clean %} +
+ + Numbering needs a tidy-up: + {% if audit.duplicates %} + duplicates at {{ audit.duplicates|join(', ') }}. + {% endif %} + {% if audit.gaps %} + missing {{ audit.gaps|join(', ') }}. + {% endif %} + {% if audit.unnumbered %} + {{ audit.unnumbered }} with no number. + {% endif %} + Renumber fixes all of it without moving anything. +
+ {% endif %} + +

+ Drag a page onto another to drop it there, or type a position in the box + under any page and press Enter. Keyboard: tab to a page, then use the + arrow buttons. Nothing is written until you save. +

+ +
+ {% for page in pages %} +
+ {{ loop.index }} + {% if page_hints.get(page.id) %} + + #{{ page_hints[page.id] }} + + {% endif %} + Page {{ loop.index }} +
+ {{ page.file_name }} +
+ + + +
+
+
+ {% endfor %} +
+
+ +
+ Order changed + + +
+{% endblock %} + +{% block extra_js %} + +{% endblock %}