From 6d17b83c8ca2bdd76c7d4b109c45dec684bb7678 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 29 Sep 2021 15:35:08 -0700 Subject: [PATCH] Id uniqueness fixes --- bookwyrm/templates/snippets/create_status/content_field.html | 2 +- bookwyrm/templates/snippets/create_status/layout.html | 4 ++-- .../snippets/reading_modals/finish_reading_modal.html | 4 ++++ bookwyrm/templates/snippets/reading_modals/layout.html | 3 +-- .../snippets/reading_modals/progress_update_modal.html | 4 ++++ .../snippets/reading_modals/start_reading_modal.html | 4 ++++ .../templates/snippets/reading_modals/want_to_read_modal.html | 4 ++++ bookwyrm/templates/snippets/toggle/toggle_button.html | 2 +- 8 files changed, 21 insertions(+), 6 deletions(-) diff --git a/bookwyrm/templates/snippets/create_status/content_field.html b/bookwyrm/templates/snippets/create_status/content_field.html index c2b383b9a..c9afecc71 100644 --- a/bookwyrm/templates/snippets/create_status/content_field.html +++ b/bookwyrm/templates/snippets/create_status/content_field.html @@ -12,7 +12,7 @@ draft: an existing Status object that is providing default values for input fiel name="content" class="textarea save-draft" data-cache-draft="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}" - id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}" + id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}{{ uuid }}" placeholder="{{ placeholder }}" aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}" {% if not optional and type != "quotation" and type != "review" %}required{% endif %} diff --git a/bookwyrm/templates/snippets/create_status/layout.html b/bookwyrm/templates/snippets/create_status/layout.html index 1e10085c0..4dded2005 100644 --- a/bookwyrm/templates/snippets/create_status/layout.html +++ b/bookwyrm/templates/snippets/create_status/layout.html @@ -19,7 +19,7 @@ reply_parent: the Status object this post will be in reply to, if applicable name="{{ type }}" action="/post/{{ type }}" method="post" - id="tab_{{ type }}_{{ book.id }}{{ reply_parent.id }}" + id="form_{{ type }}_{{ book.id }}{{ reply_parent.id }}" > {% endblock %} @@ -36,7 +36,7 @@ reply_parent: the Status object this post will be in reply to, if applicable {# fields that go between the content warnings and the content field (ie, quote) #} {% block pre_content_additions %}{% endblock %} -