diff --git a/bookwyrm/templates/snippets/progress_field.html b/bookwyrm/templates/snippets/progress_field.html index d61956ba..4ceed04c 100644 --- a/bookwyrm/templates/snippets/progress_field.html +++ b/bookwyrm/templates/snippets/progress_field.html @@ -5,7 +5,7 @@ type="number" name="progress" class="input" - id="id_progress_{{ readthrough.id }}{{ controls_uid }}" + id="{{ field_id }}" value="{{ readthrough.progress }}" {% if progress_required %}required{% endif %} > diff --git a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html index 3e0fd45e..919d2100 100644 --- a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html @@ -1,5 +1,6 @@ {% extends 'snippets/reading_modals/layout.html' %} {% load i18n %} +{% load utilities %} {% block modal-title %} {% trans "Update progress" %} @@ -12,8 +13,9 @@ {% endblock %} {% block reading-dates %} - -{% include "snippets/progress_field.html" with progress_required=True %} +{% join "id_progress" uuid as field_id %} + +{% include "snippets/progress_field.html" with progress_required=True id=field_id %} {% endblock %} {% block form %} diff --git a/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html b/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html index 60c7a89e..861f118f 100644 --- a/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/start_reading_modal.html @@ -11,7 +11,7 @@ Start "{{ book_title }}" {% block modal-form-open %}