{% extends "chrono/manager_home.html" %} {% load i18n %} {% block appbar %}

{% trans "Cancel booking" %}

{% endblock %} {% block content %}
{% if object.get_backoffice_url and not object.cancel_callback_url %} {% if not user.is_staff %}

{% trans "This booking has no callback url configured, cancellation must be handled from corresponding form." %}

{% trans "Open form" %}

{% else %}

{% trans "This booking has no callback url configured, cancellation should be handled from corresponding form in order to garantee a coherent situation." %}

{% trans "Open form" %}

{% trans "However, since you are an administrator, you can choose to cancel it anyway." %}

{% endif %} {% else %}

{% blocktrans trimmed with booking=booking.events_display %} Are you sure you want to cancel booking "{{ booking }}"? {% endblocktrans %}

{% endif %} {% if not object.get_backoffice_url or object.cancel_callback_url or user.is_staff %} {% csrf_token %} {{ form.as_p }}
{% trans 'Abort' %}
{% endif %}
{% endblock %}