[Accompanying period] fix period label in list

The template didn't take into account still opened periods.
This commit is contained in:
Julien Fastré 2020-06-30 17:33:56 +02:00
parent deac76cb47
commit 523b60c69a
2 changed files with 6 additions and 2 deletions

View File

@ -106,3 +106,7 @@ Version 1.5.13
- [CRUD] override relevant part of the main CRUD template
- [CRUD] fix redirection on person view: add a `person_id` to every page redirected.
Master branch
=============
- [Accompanying period list] Fix period label in list

View File

@ -21,7 +21,7 @@
{% for accompanying_period in accompanying_periods %}
<tr>
<td>
{% if accompanying_period.isOpen == false %}
{% if accompanying_period.closingDate == null %}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|localizeddate('long', 'none') } ) }}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
@ -96,4 +96,4 @@
</ul>
</div>
{% endblock personcontent %}
{% endblock personcontent %}