moviewyrm/bookwyrm/templates/snippets/reading_modals/progress_update_modal.html

24 lines
776 B
HTML
Raw Normal View History

2021-08-28 16:41:36 +00:00
{% extends 'snippets/reading_modals/layout.html' %}
2021-03-21 00:18:18 +00:00
{% load i18n %}
{% 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 }}">
2021-03-21 00:18:18 +00:00
{% endblock %}
2021-08-28 16:41:36 +00:00
{% block reading-dates %}
{% 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 %}