if conditions joined

This commit is contained in:
Julie Lenaerts 2022-02-11 14:28:42 +01:00
parent d5160ead4c
commit 93128cb61b

View File

@ -26,11 +26,9 @@
</div> </div>
<div class="wh-row"> <div class="wh-row">
<div class="wh-col"> <div class="wh-col">
{% if period.closingDate == null %} {% if period.closingDate == null and period.step != 'DRAFT' %}
{% if period.step != 'DRAFT' %} {{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': period.openingDate|format_date('long') } ) }}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': period.openingDate|format_date('long') } ) }} {% elseif period.closingDate != null %}
{% endif %}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({ {{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
'%opening_date%': period.openingDate|format_date('long'), '%opening_date%': period.openingDate|format_date('long'),
'%closing_date%': period.closingDate|format_date('long')} '%closing_date%': period.closingDate|format_date('long')}