From 3f52d6ee33ddd03bed7fb3552930bc3f290687c8 Mon Sep 17 00:00:00 2001 From: Joachim Date: Fri, 23 Dec 2022 21:34:53 +0100 Subject: [PATCH 01/19] Add hidden "next" input set to current path --- .../snippets/reading_modals/finish_reading_modal.html | 3 ++- .../snippets/reading_modals/progress_update_modal.html | 1 + .../snippets/reading_modals/start_reading_modal.html | 3 ++- .../templates/snippets/reading_modals/stop_reading_modal.html | 1 + .../templates/snippets/reading_modals/want_to_read_modal.html | 3 ++- bookwyrm/templates/snippets/shelf_selector.html | 4 +++- bookwyrm/templates/snippets/shelve_button/modal_button.html | 1 + .../shelve_button/shelve_button_dropdown_options.html | 2 ++ .../snippets/shelve_button/shelve_button_options.html | 1 + 9 files changed, 15 insertions(+), 4 deletions(-) diff --git a/bookwyrm/templates/snippets/reading_modals/finish_reading_modal.html b/bookwyrm/templates/snippets/reading_modals/finish_reading_modal.html index fe35ee7e6..e79f0c5a3 100644 --- a/bookwyrm/templates/snippets/reading_modals/finish_reading_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/finish_reading_modal.html @@ -13,7 +13,8 @@ Finish "{{ book_title }}" {% csrf_token %} - + + {% endblock %} {% block reading-dates %} diff --git a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html index e0be1588d..06dacda69 100644 --- a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html @@ -11,6 +11,7 @@ {% csrf_token %} + {% endblock %} {% block reading-dates %} diff --git a/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html b/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html index 861f118f9..00962d7f8 100644 --- a/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html @@ -10,9 +10,10 @@ Start "{{ book_title }}" {% block modal-form-open %}
+{% csrf_token %} -{% csrf_token %} + {% endblock %} {% block reading-dates %} diff --git a/bookwyrm/templates/snippets/reading_modals/stop_reading_modal.html b/bookwyrm/templates/snippets/reading_modals/stop_reading_modal.html index 8e5ae7d65..37718134b 100644 --- a/bookwyrm/templates/snippets/reading_modals/stop_reading_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/stop_reading_modal.html @@ -14,6 +14,7 @@ Stop Reading "{{ book_title }}" + {% endblock %} {% block reading-dates %} diff --git a/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html b/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html index d6bc4d70a..f16c6d44a 100644 --- a/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html @@ -10,9 +10,10 @@ Want to Read "{{ book_title }}" {% block modal-form-open %} +{% csrf_token %} -{% csrf_token %} + {% endblock %} {% block form %} diff --git a/bookwyrm/templates/snippets/shelf_selector.html b/bookwyrm/templates/snippets/shelf_selector.html index feea50d7b..c13c726e7 100644 --- a/bookwyrm/templates/snippets/shelf_selector.html +++ b/bookwyrm/templates/snippets/shelf_selector.html @@ -22,7 +22,7 @@ - + @@ -92,6 +93,7 @@ {% csrf_token %} +
diff --git a/bookwyrm/templates/snippets/shelve_button/modal_button.html b/bookwyrm/templates/snippets/shelve_button/modal_button.html index a745b4fba..ef37f8872 100644 --- a/bookwyrm/templates/snippets/shelve_button/modal_button.html +++ b/bookwyrm/templates/snippets/shelve_button/modal_button.html @@ -1,5 +1,6 @@ {% load utilities %}
+ @@ -69,6 +70,7 @@ {% csrf_token %} + diff --git a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html index 53ff80bf7..e254d46c3 100644 --- a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html +++ b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html @@ -62,6 +62,7 @@ {% csrf_token %} + @@ -93,7 +91,6 @@ {% csrf_token %} - diff --git a/bookwyrm/templates/snippets/shelve_button/modal_button.html b/bookwyrm/templates/snippets/shelve_button/modal_button.html index ef37f8872..a745b4fba 100644 --- a/bookwyrm/templates/snippets/shelve_button/modal_button.html +++ b/bookwyrm/templates/snippets/shelve_button/modal_button.html @@ -1,6 +1,5 @@ {% load utilities %}
- @@ -70,7 +69,6 @@ {% csrf_token %} - diff --git a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html index e254d46c3..53ff80bf7 100644 --- a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html +++ b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html @@ -62,7 +62,6 @@ {% csrf_token %} -