Projet

Général

Profil

0002-templates-improve-booking-cancellation-confirmation-.patch

Valentin Deniaud, 05 août 2020 11:30

Télécharger (1,85 ko)

Voir les différences:

Subject: [PATCH 2/2] templates: improve booking cancellation confirmation
 (#45742)

 .../manager_confirm_booking_cancellation.html    | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
chrono/manager/templates/chrono/manager_confirm_booking_cancellation.html
2 2
{% load i18n %}
3 3

  
4 4
{% block appbar %}
5
<h2>{{ view.model.get_verbose_name }}</h2>
5
<h2>{% trans "Cancel booking" %}</h2>
6 6
{% endblock %}
7 7

  
8 8
{% block content %}
9 9
<form method="post">
10 10
  {% if object.backoffice_url and not object.cancel_callback_url %}
11
  <div class="warningnotice">
12
    {% filter urlize %}
13
    {% blocktrans trimmed with backoffice_url=object.backoffice_url %}
14
    This booking has no callback url configured, cancellation must be handled from
15
    corresponding form: {{backoffice_url }}.
16
    {% endblocktrans %}
17
    {% endfilter %}
18
  </div>
11
  <p>{% trans "This booking has no callback url configured, cancellation must be handled from corresponding form." %}</p>
12
  <p><a href="{{ object.backoffice_url }}">{% trans "Open form" %}</a></p>
19 13
  {% else %}
20 14

  
21 15
  {% csrf_token %}
22 16
  <p>
23
  {% trans "Are you sure you want to cancel this booking?" %}
17
  {% blocktrans trimmed with booking=booking.events_display %}
18
  Are you sure you want to cancel booking "{{ booking }}"?
19
  {% endblocktrans %}
24 20
  </p>
25 21
  <input type="hidden" name="next" value="{% firstof request.POST.next request.GET.next %}">
26 22
  {{ form.as_p }}
27
-