Advanced search fixed to work with new gender entity

This commit is contained in:
2024-10-22 14:50:06 +02:00
parent 588f02cdf4
commit 5dfa5e1e7f
5 changed files with 29 additions and 18 deletions

View File

@@ -86,9 +86,7 @@
</div>
{%- if options['addInfo'] -%}
<p class="moreinfo">
{{ person.gender.icon|chill_entity_render_box }}
{# <i class="{{ person.gender.icon.value }}" title="{{ person.gender.label|localize_translatable_string }}"></i>#}
{% if person.gender is not null %}{{ person.gender.icon|chill_entity_render_box }}{% endif %}
{%- if person.deathdate is not null -%}
{%- if person.birthdate is not null -%}
{# must be on one line to avoid spaces with dash #}