2021-12-31 03:19:55 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block modal-title %}{% trans "Delete these read dates?" %}{% endblock %}
|
2021-12-31 01:48:09 +00:00
|
|
|
|
2021-01-20 06:30:51 +00:00
|
|
|
{% block modal-body %}
|
|
|
|
{% if readthrough.progress_updates|length > 0 %}
|
2021-12-31 01:48:09 +00:00
|
|
|
{% blocktrans trimmed with count=readthrough.progress_updates|length %}
|
|
|
|
You are deleting this readthrough and its {{ count }} associated progress updates.
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% else %}
|
|
|
|
{% trans "This action cannot be un-done" %}
|
2021-01-20 06:30:51 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2021-12-31 01:48:09 +00:00
|
|
|
|
2021-01-17 18:10:59 +00:00
|
|
|
{% block modal-footer %}
|
2022-03-10 17:57:55 +00:00
|
|
|
<form
|
|
|
|
name="delete-readthrough-{{ readthrough.id }}"
|
|
|
|
action="/delete-readthrough"
|
|
|
|
method="POST"
|
|
|
|
class="is-flex-grow-1"
|
|
|
|
>
|
2021-01-17 18:10:59 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
2022-03-10 17:57:55 +00:00
|
|
|
|
|
|
|
<div class="buttons is-right">
|
|
|
|
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
|
|
|
<button class="button is-danger" type="submit">
|
|
|
|
{% trans "Delete" %}
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-01-17 18:10:59 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|