household banner: badge-member and holder mark in person theme

This commit is contained in:
2021-09-03 10:59:44 +02:00
parent b14b27c110
commit 21630a37af
4 changed files with 29 additions and 18 deletions

View File

@@ -21,16 +21,19 @@
</span>
{%- for m in members|slice(0, 5) -%}
<a href="{{ path('chill_person_view', { person_id: m.person.id}) }}">
<span
class="badge-member{%- if m.holder %} holder{% endif -%}{%- if m.position.ordering >= 2 %} child{% endif -%}"
title="{{ m.position.label.fr }}">
{%- if m.holder %}
<span class="badge bg-chill-light-gray text-chill-gray">
{{ 'household.holder'|trans }}
</span>
<span class="fa-stack fa-holder" title="{{ 'household.holder'|trans }}">
<i class="fa fa-circle fa-stack-1x text-success"></i>
<i class="fa fa-stack-1x">T</i>
</span>
{% endif -%}
{{- m.person|chill_entity_render_box({'addLink': false}) -}}
{{- m.person|chill_entity_render_box() -}}
</span>
</a>
{%- endfor -%}
{% if members|length > 5 %}