2021-01-29 16:51:36 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
2021-01-18 17:03:21 +00:00
|
|
|
{% block modal-title %}Delete these read dates?{% endblock %}
|
2021-01-20 06:30:51 +00:00
|
|
|
{% block modal-body %}
|
|
|
|
{% if readthrough.progress_updates|length > 0 %}
|
|
|
|
You are deleting this readthrough and its {{ readthrough.progress_updates|length }} associated progress updates.
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2021-01-17 18:10:59 +00:00
|
|
|
{% block modal-footer %}
|
|
|
|
<form name="delete-readthrough-{{ readthrough.id }}" action="/delete-readthrough" method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
|
|
|
<button class="button is-danger" type="submit">
|
|
|
|
Delete
|
|
|
|
</button>
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="delete-readthrough" controls_uid=readthrough.id %}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|