From 38ccc23cd5667dc14d677e1355f8a06d572a363f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 25 Jan 2022 09:40:03 -0800 Subject: [PATCH] Add notes form --- bookwyrm/templates/lists/list.html | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 6cfb9b20f..6f478fa18 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -71,7 +71,7 @@ {% endwith %} - {% if item.note or item.user == request.user %} + {% if item.notes %}
{% include "snippets/avatar.html" with user=item.user %} @@ -85,14 +85,14 @@ {% endblocktrans %}

- {{ item.notes|to_markdown|safe }} + {{ item.notes|to_markdown|safe }}

{% if item.user == request.user %}
- {% trans "Edit:" %} + {% trans "Edit notes:" %}
@@ -115,6 +115,30 @@ {% endif %}
+ {% elif item.user == request.user %} +
+
+ + {% trans "Add notes:" %} + + + + {% csrf_token %} +
+
+ +
+
+
+
+ +
+
+ +
+
{% endif %}