chrono/chrono/manager/templates/chrono/manager_confirm_event_delet...

25 lines
772 B
HTML

{% extends "chrono/manager_home.html" %}
{% load i18n %}
{% block appbar %}
<h2>{{ view.model.get_verbose_name }}</h2>
{% endblock %}
{% block content %}
<form method="post">
{% csrf_token %}
<input type="hidden" name="next" value="{% firstof request.POST.next request.GET.next %}">
<p>
{% if cannot_delete %}
{% blocktrans %}This cannot be removed as there are bookings.{% endblocktrans %}
{% else %}
{% blocktrans %}Are you sure you want to delete this event?{% endblocktrans %}
{% endif %}
</p>
<div class="buttons">
<button class="delete-button" {% if cannot_delete %}disabled="disabled"{% endif %}>{% trans 'Delete' %}</button>
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}