openingDate only displayed on parcours that are not in draft state

This commit is contained in:
Julie Lenaerts 2022-02-09 15:59:10 +01:00
parent a2a0f6af44
commit b4f9be0d92

View File

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