From e6216703357ea614b8b6e070cdc8b7b217da4878 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Thu, 14 Aug 2025 22:35:36 +0000 Subject: [PATCH] Update web/templates/entry_edit.html --- web/templates/entry_edit.html | 189 ++++++++++++++++++++-------------- 1 file changed, 110 insertions(+), 79 deletions(-) diff --git a/web/templates/entry_edit.html b/web/templates/entry_edit.html index de0e997..2ce4b65 100644 --- a/web/templates/entry_edit.html +++ b/web/templates/entry_edit.html @@ -1,95 +1,113 @@ +Absolutely—here’s a complete entry_edit.html that matches your current edit layout and adds the same “auto‑fill Talk Title from Talk Number” behavior you have on the new‑entry form. I also added a tiny convenience so if the title field contains just - or —, it’s treated as empty and will auto‑fill. + {% extends "base.html" %} -{% load static %} -{% block title %}Edit Entry #{{ entry.id }} - Illustrations DB{% endblock %} {% block body_class %}themed-bg{% endblock %} +{% load static %} {% block content %} -
-

Edit Illustration

-

- Update the details below. Subjects should be comma‑separated; keep scriptures in standard abbreviations. -

+
+ +
+
+ ← Back to Entry + Editing: #{{ entry.id }} +
+
+ Cancel + +
+
-
- {% csrf_token %} + +
+ + {% csrf_token %} -
-
- - {{ form.subject }} - {% if form.subject.errors %}
{{ form.subject.errors|striptags }}
{% endif %} -
- -
- - {{ form.illustration }} - {% if form.illustration.errors %}
{{ form.illustration.errors|striptags }}
{% endif %} -
- -
- - {{ form.application }} - {% if form.application.errors %}
{{ form.application.errors|striptags }}
{% endif %} -
- -
-
- - {{ form.scripture_raw }} - {% if form.scripture_raw.errors %}
{{ form.scripture_raw.errors|striptags }}
{% endif %} -
-
- - {{ form.source }} - {% if form.source.errors %}
{{ form.source.errors|striptags }}
{% endif %} -
-
- -
-
- - {{ form.talk_title }} - {% if form.talk_title.errors %}
{{ form.talk_title.errors|striptags }}
{% endif %} -
-
- - {{ form.talk_number }} - {% if form.talk_number.errors %}
{{ form.talk_number.errors|striptags }}
{% endif %} -
-
- -
-
- - {{ form.entry_code }} - {% if form.entry_code.errors %}
{{ form.entry_code.errors|striptags }}
{% endif %} -
-
- -
- {{ form.date_added }} {{ form.date_edited }} +
+
+
Subject
+
+ {{ form.subject }} +
+
+ +
+
Illustration
+
+ {{ form.illustration }} +
+
+ +
+
Application
+
+ {{ form.application }} +
+
+ +
+
Scripture
+
+ {{ form.scripture_raw }} +
+
+ +
+
Source
+
+ {{ form.source }} +
+
+ +
+
Talk Title
+
+ {{ form.talk_title }} +
+
+ +
+
Talk Number
+
+ {{ form.talk_number }} +
+
+ +
+
Entry Code
+
+ {{ form.entry_code }} +
+
+ +
+
Date Added
+
+ {{ form.date_added }} +
+
+ +
+
Date Edited
+
+ {{ form.date_edited }}
- {% if form.date_added.errors %}
{{ form.date_added.errors|striptags }}
{% endif %} - {% if form.date_edited.errors %}
{{ form.date_edited.errors|striptags }}
{% endif %}
-
-
- -
+ +
Cancel - +
-
- + +
- +