mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
a few more implementations in twig templates
This commit is contained in:
parent
0a26e7f326
commit
feaee8a0b1
@ -48,7 +48,7 @@
|
|||||||
<li class="associated-persons">
|
<li class="associated-persons">
|
||||||
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
|
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
|
||||||
{% for p in activity.personsAssociated %}
|
{% for p in activity.personsAssociated %}
|
||||||
<span class="badge-person">{{ p|chill_entity_render_box }}</span>
|
<span class="badge-person">{{ p|chill_entity_render_box({'addAgeBadge': true}) }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<li class="associated-persons">
|
<li class="associated-persons">
|
||||||
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
|
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
|
||||||
{% for p in w.persons %}
|
{% for p in w.persons %}
|
||||||
<span class="badge-person">{{ p|chill_entity_render_box }}</span>
|
<span class="badge-person">{{ p|chill_entity_render_box({'addAgeBadge': true}) }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if options['addAgeBadge'] -%}
|
{%- if options['addAgeBadge'] -%}
|
||||||
{% if person.age is not null and person.deathDate is null %}
|
{% if person.age is not null and person.deathDate is null %}
|
||||||
<span class="age">({{- 'years_old'|trans({ 'age': person.age }) -}})</span>
|
<span>({{- 'years_old'|trans({ 'age': person.age }) -}})</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro raw %}
|
{% endmacro raw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user