From b12ea84db4c65108ccdeb06f713abbbf794680a1 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 31 Oct 2022 00:22:35 +0100 Subject: [PATCH] Improve notes display & edit --- .../templates/character/notes_display.html | 23 ++++++++------- .../templates/character/notes_update.html | 29 ++++++++++--------- src/character/templates/character/view.html | 5 +--- 3 files changed, 30 insertions(+), 27 deletions(-) diff --git a/src/character/templates/character/notes_display.html b/src/character/templates/character/notes_display.html index 2c483af..69098eb 100644 --- a/src/character/templates/character/notes_display.html +++ b/src/character/templates/character/notes_display.html @@ -1,10 +1,13 @@ -

- - Edit - -

-{{ character.notes|linebreaks }} +
+

+ Notes + + Edit + +

+ {{ character.notes|linebreaks }} +
diff --git a/src/character/templates/character/notes_update.html b/src/character/templates/character/notes_update.html index 401e004..004e256 100644 --- a/src/character/templates/character/notes_update.html +++ b/src/character/templates/character/notes_update.html @@ -1,13 +1,16 @@ -
-

- - Save - -

- {% csrf_token %} - -
+
+
+

+ Notes + + Save + +

+ {% csrf_token %} + +
+
diff --git a/src/character/templates/character/view.html b/src/character/templates/character/view.html index 25da45f..6538a0e 100644 --- a/src/character/templates/character/view.html +++ b/src/character/templates/character/view.html @@ -361,8 +361,5 @@ {% endfor %} -

Notes

-
- {% include "character/notes_display.html" %} -
+ {% include "character/notes_display.html" %} {% endblock %}