fix template mistakes

This commit is contained in:
Mathieu Jaumotte 2022-03-02 09:53:51 +01:00
parent 1a05ffab96
commit 8945703785
2 changed files with 29 additions and 31 deletions

View File

@ -107,37 +107,35 @@
</div> </div>
{% if displayAction is defined and displayAction == true %} {% if displayAction is defined and displayAction == true %}
<div class="item-col"> <ul class="item-col record_actions">
<ul class="record_actions"> {% set suppEvaluations = [] %}
{% set suppEvaluations = [] %} {% for e in w.accompanyingPeriodWorkEvaluations %}
{% for e in w.accompanyingPeriodWorkEvaluations %} {% set suppEvaluations = suppEvaluations|merge([
{% set suppEvaluations = suppEvaluations|merge([ {'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluation', 'relatedEntityId': e.id }
{'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluation', 'relatedEntityId': e.id } ]) %}
]) %}
{% for d in e.documents %} {% for d in e.documents %}
{% set suppEvaluations = suppEvaluations|merge([ {% set suppEvaluations = suppEvaluations|merge([
{'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'relatedEntityId': d.id } {'relatedEntityClass': 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', 'relatedEntityId': d.id }
]) %} ]) %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
<li> <li>
{{ chill_entity_workflow_list( {{ chill_entity_workflow_list(
'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork', 'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork',
w.id, [], suppEvaluations) }} w.id, [], suppEvaluations) }}
</li> </li>
<li> <li>
<a class="btn btn-edit" title="{{ 'Edit'|trans }}" <a class="btn btn-edit" title="{{ 'Edit'|trans }}"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}" href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
></a> ></a>
</li> </li>
<li> <li>
<a class="btn btn-delete" title="{{ 'Delete'|trans }}" <a class="btn btn-delete" title="{{ 'Delete'|trans }}"
href="{{ path('chill_person_accompanying_period_work_delete', { 'id': w.id } ) }}" href="{{ path('chill_person_accompanying_period_work_delete', { 'id': w.id } ) }}"
></a> ></a>
</li> </li>
</ul> </ul>
</div>
{% endif %} {% endif %}
</div> </div>

View File

@ -3,7 +3,7 @@
{% block title 'Tasks for this accompanying period'|trans %} {% block title 'Tasks for this accompanying period'|trans %}
{% block content %} {% block content %}
<div class="col-md-10 col-xxl"> <div class="task-list">
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>