Use renderInterface to render gender icons in twig

This commit is contained in:
2024-10-01 11:36:00 +02:00
parent 567c01f395
commit b9d2f5efa3
4 changed files with 42 additions and 2 deletions

View File

@@ -86,7 +86,8 @@
</div>
{%- if options['addInfo'] -%}
<p class="moreinfo">
<i class="{{ person.gender.icon }}" title="{{ person.gender.label|localize_translatable_string }}"></i>
{{ person.gender.icon|chill_entity_render_box }}
{# <i class="{{ person.gender.icon.value }}" title="{{ person.gender.label|localize_translatable_string }}"></i>#}
{%- if person.deathdate is not null -%}
{%- if person.birthdate is not null -%}