diff --git a/bookwyrm/templates/snippets/progress_field.html b/bookwyrm/templates/snippets/progress_field.html new file mode 100644 index 00000000..8feb5a58 --- /dev/null +++ b/bookwyrm/templates/snippets/progress_field.html @@ -0,0 +1,27 @@ +{% load i18n %} +
+
+ +
+
+ +
+
diff --git a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html index c766153a..daa87ade 100644 --- a/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html @@ -1,4 +1,4 @@ -{% extends 'components/modal.html' %} +{% extends 'snippets/reading_modals/layout.html' %} {% load i18n %} {% block modal-title %} @@ -7,40 +7,9 @@ {% block modal-form-open %}
-{% endblock %} - -{% block modal-body %} {% csrf_token %} - -
- -
-
- -
-
- -
-
- {% if readthrough.progress_mode == 'PG' and book.pages %} -

{% blocktrans with pages=book.pages %}of {{ pages }} pages{% endblocktrans %}

- {% endif %} -
{% endblock %} -{% block modal-footer %} - -{% trans "Cancel" as button_text %} -{% include 'snippets/toggle/toggle_button.html' with text=button_text %} +{% block reading-dates %} +{% include "snippets/progress_field.html" with progress_required=True %} {% endblock %} -{% block modal-form-close %}
{% endblock %} diff --git a/bookwyrm/templates/snippets/readthrough_form.html b/bookwyrm/templates/snippets/readthrough_form.html index 132472d2..8810778c 100644 --- a/bookwyrm/templates/snippets/readthrough_form.html +++ b/bookwyrm/templates/snippets/readthrough_form.html @@ -13,17 +13,7 @@ -
-
- -
-
- -
-
+{% include "snippets/progress_field.html" %} {% endif %}