2021-01-29 16:51:36 +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-01-20 06:30:51 +00:00
{% block modal-body %}
{% if readthrough.progress_updates|length > 0 %}
2021-02-28 02:48:10 +00:00
{% blocktrans with count=readthrough.progress_updates|length %}You are deleting this readthrough and its {{ count }} associated progress updates.{% endblocktrans %}
2021-01-20 06:30:51 +00:00
{% 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" >
2021-02-28 02:48:10 +00:00
{% trans "Delete" %}
2021-01-17 18:10:59 +00:00
< / button >
2021-03-01 01:10:30 +00:00
{% trans "Cancel" as button_text %}
2021-08-09 01:40:47 +00:00
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="delete_readthrough" controls_uid=readthrough.id %}
2021-01-17 18:10:59 +00:00
< / form >
{% endblock %}