2021-08-28 16:41:36 +00:00
|
|
|
{% extends 'snippets/reading_modals/layout.html' %}
|
2021-03-21 00:18:18 +00:00
|
|
|
{% load i18n %}
|
2022-01-04 20:53:48 +00:00
|
|
|
{% load utilities %}
|
2021-03-21 00:18:18 +00:00
|
|
|
|
|
|
|
{% block modal-title %}
|
|
|
|
{% trans "Update progress" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
2021-12-29 19:31:26 +00:00
|
|
|
<form name="reading-progress-{{ uuid }}" action="{% url 'reading-status-update' book.id %}" method="POST" class="submit-status">
|
2021-09-28 16:23:50 +00:00
|
|
|
{% csrf_token %}
|
2021-09-29 17:59:36 +00:00
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
2022-03-19 02:20:43 +00:00
|
|
|
<input type="hidden" name="start_date" value="{{ readthrough.start_date|date:'Y-m-d' }}">
|
2021-03-21 00:18:18 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-08-28 16:41:36 +00:00
|
|
|
{% block reading-dates %}
|
2022-01-04 20:53:48 +00:00
|
|
|
{% join "id_progress" uuid as field_id %}
|
|
|
|
<label for="{{ field_id }}" class="label">{% trans "Progress:" %}</label>
|
|
|
|
{% include "snippets/progress_field.html" with progress_required=True id=field_id %}
|
2021-03-21 00:18:18 +00:00
|
|
|
{% endblock %}
|
2021-09-29 22:35:08 +00:00
|
|
|
|
|
|
|
{% block form %}
|
|
|
|
{% include "snippets/reading_modals/form.html" with optional=False type="update_modal" %}
|
|
|
|
{% endblock %}
|