chrono/chrono/manager/templates/chrono/manager_confirm_delete.html

25 lines
686 B
HTML

{% extends "chrono/manager_home.html" %}
{% load i18n %}
{% block appbar %}
<h2>{{ object }}</h2>
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
<p>
{% if cannot_delete %}
{% blocktrans %}This cannot be removed as there are bookings for a future date.
{% endblocktrans %}
{% else %}
{% blocktrans %}Are you sure you want to delete this exception?{% endblocktrans %}
{% endif %}
</p>
<div class="buttons">
<button class="delete-button" {% if cannot_delete %}disabled="disabled"{% endif %}>{% trans 'Delete' %}</button>
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}