[Accompanying period] fix closing motive label

This commit is contained in:
Julien Fastré 2020-06-30 17:45:03 +02:00
parent 523b60c69a
commit 98b9f5d2d7
2 changed files with 10 additions and 4 deletions

View File

@ -110,3 +110,4 @@ Master branch
=============
- [Accompanying period list] Fix period label in list
- [Accompanying period list] Fix label of closing motive

View File

@ -28,6 +28,14 @@
'%opening_date%': accompanying_period.openingDate|localizeddate('long', 'none'),
'%closing_date%': accompanying_period.closingDate|localizeddate('long', 'none')}
) }}
{% if accompanying_period.isOpen == false %}
<dl class="chill_view_data">
<dt>{{ 'Closing motive'|trans }}&nbsp;:</dt>
<dd>{{ accompanying_period.closingMotive|chill_entity_render_box }}</dd>
</dl>
{% endif %}
{% endif %}
</td>
{% if chill_accompanying_periods.fields.user == 'visible' %}
@ -40,10 +48,7 @@
</td>
{% endif %}
<td>
{% if accompanying_period.isOpen == false %}
<div>{{ accompanying_period.closingMotive|chill_entity_render_box }}</div>
<br/>
{% endif %}
{{ accompanying_period.remark|chill_print_or_message('No remark', 'blockquote') }}
</td>
<td>