household banner: <a> tag inside <span> if we want flex order

This commit is contained in:
Mathieu Jaumotte 2021-09-03 15:31:00 +02:00
parent 3fefaf1e4d
commit d575b48e76

View File

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