44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
{% extends "chrono/manager_home.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar %}
|
|
<h2>{{ view.model.get_verbose_name }}</h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post">
|
|
{% if cancellation_forbidden %}
|
|
<div class="warningnotice">
|
|
{% blocktrans trimmed %}
|
|
This event has bookings with no callback url configured. Their cancellation must be
|
|
handled individually from the forms attached to them. Only then, cancelling this event
|
|
will be allowed.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% else %}
|
|
{% csrf_token %}
|
|
<p>
|
|
{% trans "Are you sure you want to cancel this event?" %}
|
|
{% if bookings_count %}
|
|
{% if cancel_bookings %}
|
|
{% blocktrans trimmed count count=bookings_count %}
|
|
{{ count }} related booking will also be cancelled.
|
|
{% plural %}
|
|
{{ count }} related bookings will also be cancelled.
|
|
{% endblocktrans %}
|
|
{% else %}
|
|
{% trans "Related bookings will have to be manually cancelled if needed." %}
|
|
{% endif %}
|
|
{% endif %}
|
|
</p>
|
|
<input type="hidden" name="next" value="{% firstof request.POST.next request.GET.next %}">
|
|
{{ form.as_p }}
|
|
<div class="buttons">
|
|
<button class="delete-button">{% trans "Proceed with cancellation" %}</button>
|
|
<a class="cancel" href="{{ view.get_success_url }}">{% trans 'Abort' %}</a>
|
|
</div>
|
|
{% endif %}
|
|
</form>
|
|
{% endblock %}
|