manager: display undefined delays with proper label (#42270)

This commit is contained in:
Frédéric Péters 2020-05-03 19:03:37 +02:00
parent d41b9ab20b
commit b61097e250
1 changed files with 6 additions and 2 deletions

View File

@ -47,8 +47,12 @@
<h3>{% trans "Booking Delays" %}</h3>
<div>
<ul>
<li>{% trans "Minimal booking delay:" %} {{ agenda.minimal_booking_delay }} {% trans "days" %}</li>
<li>{% trans "Maximal booking delay:" %} {{ agenda.maximal_booking_delay }} {% trans "days" %}</li>
<li>{% trans "Minimal booking delay:" %}
{% if agenda.minimal_booking_delay is not None %}{{ agenda.minimal_booking_delay }} {% trans "days" %}
{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
<li>{% trans "Maximal booking delay:" %}
{% if agenda.maximal_booking_delay is not None %}{{ agenda.maximal_booking_delay }} {% trans "days" %}
{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
</ul>
</div>
</div>