From b6579fe08bc0a04864c14d21006cdf717f00ab2b Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Fri, 15 Aug 2025 22:41:30 +0000 Subject: [PATCH] Update web/templates/entry_edit.html --- web/templates/entry_edit.html | 313 ++++++++++++++++++---------------- 1 file changed, 170 insertions(+), 143 deletions(-) diff --git a/web/templates/entry_edit.html b/web/templates/entry_edit.html index 8ca2941..f750d57 100644 --- a/web/templates/entry_edit.html +++ b/web/templates/entry_edit.html @@ -3,167 +3,194 @@ {% load static %} {% block content %} -
- +
+ +
- ← Back to Entry - Editing: #{{ entry.id }} + ← Back to Search + {% if count %} + {{ position }} of {{ count }} + {% endif %}
- Cancel - +
+ + + +
+
+ + + +
+ + + + + {% if user.is_authenticated and user.is_staff %} + Edit + Delete + {% endif %}
- -
-
- {% csrf_token %} + +
+ +
+ {% if subject_list %} + {% for s in subject_list %} + {{ s }} + {% endfor %} + {% else %} + (no subject) + {% endif %} +
-
-
-
Subject
-
- {{ form.subject }} -
-
+ +
+ +
+ {{ entry.illustration|linebreaksbr|default:"—" }} +
+
-
-
Illustration
-
- {{ form.illustration }} -
-
+ +
+ +
+ {{ entry.application|linebreaksbr|default:"—" }} +
+
-
-
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 }} -
-
+ +
+
+
Source
+
+ {% if entry.source %} + {% with s=entry.source %} + {% with sl=s|lower %} + {% if sl|slice:":2" == "wp" or sl|slice:":2" == "ws" or sl|slice:":2" == "yb" or sl|slice:":2" == "km" or sl|slice:":3" == "mwb" or sl|slice:":1" == "w" or sl|slice:":1" == "g" or sl|slice:":2" == "ap" or sl|slice:":3" == "apf" or sl|slice:":2" == "be" or sl|slice:":2" == "bh" or sl|slice:":2" == "br" or sl|slice:":2" == "bt" or sl|slice:":3" == "btg" or sl|slice:":2" == "cf" or sl|slice:":2" == "cl" or sl|slice:":2" == "ct" or sl|slice:":2" == "dp" or sl|slice:":2" == "fg" or sl|slice:":2" == "fy" or sl|slice:":2" == "gt" or sl|slice:":2" == "hb" or sl|slice:":2" == "im" or sl|slice:":2" == "ip" or sl|slice:":2" == "it" or sl|slice:":2" == "jv" or sl|slice:":2" == "ka" or sl|slice:":2" == "kj" or sl|slice:":2" == "kl" or sl|slice:":2" == "lf" or sl|slice:":3" == "lff" or sl|slice:":2" == "ll" or sl|slice:":2" == "ly" or sl|slice:":2" == "my" or sl|slice:":2" == "od" or sl|slice:":2" == "pe" or sl|slice:":2" == "po" or sl|slice:":2" == "pt" or sl|slice:":2" == "rr" or sl|slice:":2" == "rs" or sl|slice:":2" == "sg" or sl|slice:":2" == "sh" or sl|slice:":2" == "si" or sl|slice:":2" == "td" or sl|slice:":2" == "tp" or sl|slice:":2" == "tr" or sl|slice:":2" == "ts" or sl|slice:":2" == "un" %} + {{ s }} + {% else %} + {{ s }} + {% endif %} + {% endwith %} + {% endwith %} + {% else %}—{% endif %}
- -
- Cancel - +
+
Scripture
+
+ {% if scripture_list %} + {% for sc in scripture_list %} + {{ sc }} + {% endfor %} + {% else %}—{% endif %} +
- + +
+
Code
+
{{ entry.entry_code|default:"—" }}
+
+ +
+
Talk
+
+ {% if entry.talk_title %}{{ entry.talk_title }}{% else %}—{% endif %} + {% if entry.talk_number %}#{{ entry.talk_number }}{% endif %} +
+
+ +
+
Dates
+
+ {% if entry.date_added %}Added: {{ entry.date_added }}{% else %}Added: —{% endif %} + {% if entry.date_edited %} • Edited: {{ entry.date_edited }}{% endif %} +
+
+
+
- + + + + + {% endblock %} \ No newline at end of file