Fixes for work rendering without "onlyone" parameter

This commit is contained in:
Julien Fastré 2023-06-13 22:58:08 +02:00
parent 53aa887da5
commit cb4de1f3d2
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -65,7 +65,7 @@
</th> </th>
</thead> </thead>
<tbody> <tbody>
{% if onlyone %} {% if onlyone|default(false) %}
{% for e in w.accompanyingPeriodWorkEvaluations %} {% for e in w.accompanyingPeriodWorkEvaluations %}
{% if evalId is defined and evalId == e.id %} {% if evalId is defined and evalId == e.id %}
<tr> <tr>
@ -275,7 +275,7 @@
'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'entityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument',
'entityId': d.id }) }}"></a> 'entityId': d.id }) }}"></a>
{% endif %} {% endif %}
{{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }} {{ d.storedObject|chill_document_button_group(d.title, is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w), {'small': true}) }}
</td> </td>
</tr> </tr>