add concerned parties in show activity page (2 contexts)

This commit is contained in:
2021-06-03 19:13:58 +02:00
parent 32b3d74a1b
commit 987815471c
14 changed files with 99 additions and 21 deletions

View File

@@ -0,0 +1,37 @@
{% if context == 'person' %}
{% set blocs = [
{ 'title': 'Persons associated'|trans, 'items': entity.persons },
{ 'title': 'ThirdParties'|trans, 'items': entity.thirdParties },
{ 'title': 'Users concerned'|trans, 'items': entity.users },
] %}
{% else %}
{% set blocs = [
{ 'title': 'Persons in accompanying course'|trans, 'items': entity.persons },
{ 'title': 'Third persons'|trans, 'items': entity.persons },
{ 'title': 'ThirdParties'|trans, 'items': entity.thirdParties },
{ 'title': 'Users concerned'|trans, 'items': entity.users },
] %}
{% endif %}
<div class="flex-bloc concerned-groups {{ context }}">
{% for bloc in blocs %}
<div class="item-bloc">
<div class="item-row">
<div class="item-col">
<h4>{{ bloc.title }}</h4>
</div>
<div class="item-col">
<ul class="list-content">
{% for item in bloc.items %}
<li>
<span class="badge badge-primary">
{{ item|chill_entity_render_box({'only_denomination': true}) }}
</span>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endfor %}
</div>