diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig index 3567d1f7e..e88e07013 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig @@ -133,7 +133,7 @@ {% macro customButtons(member, household) %}
{{ p.position.label|localize_translatable_string }} + {% if p.holder %} + {{ 'household.holder'|trans }} + {% endif %} +
++ {{ 'household.Any simultaneous members'|trans }} +
+ {% else %} + {% for m in simultaneous -%} + {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { + action: 'show', displayBadge: true, + targetEntity: { name: 'person', id: m.person.id }, + buttonText: m.person|chill_entity_render_string + } %} + {%- endfor -%} + {% endif %} +{{ 'household.Never in any household'|trans }}
- {% if memberships|length == 0 %} -{{ 'household.Never in any household'|trans }}
+ + {% else %} +- - - {{ 'household.Household number'|trans({'household_num': p.household.id }) }} - -
-{{ p.position.label|localize_translatable_string }} {% if p.holder %}{{ 'household.holder'|trans }}{% endif %} -
- {{ 'household.Any simultaneous members'|trans }} -
- {% else %} - {{ 'household.Members at same time'|trans }}: - {% for p in simultaneous -%} - {{- p.person|chill_entity_render_box({'addLink': true }) -}} - {%- if p.holder %} {{'household.holder'|trans }} {% endif %} - {%- if not loop.last %}, {% endif -%} - {%- endfor -%} - {% endif %} -{{ 'household.Never in any household'|trans }}
- {% else %} -{{ 'household.from'|trans }} | -{{ 'household.to'|trans }} | -{{ 'household.Household'|trans }} | -|
---|---|---|---|
{{ p.startDate|format_date('long') }} | -- {% if p.endDate is not empty %} - {{ p.endDate|format_date('long') }} - {% else %} - {{ 'household.Membership currently running'|trans }} - {% endif %} - | -
-
-
- - - - {{ 'household.Household number'|trans({'household_num': p.household.id }) }} - - -- {{ p.position.label|localize_translatable_string }} - {% if p.holder %} - {{ 'household.holder'|trans }} - {% endif %} -
- {% set simultaneous = p.household.getMembersDuringMembership(p) %}
- {% if simultaneous|length == 0 %}
-
- - {{ 'household.Any simultaneous members'|trans }} - - {% else %} - {{ 'household.Members at same time'|trans }}: - {% for p in simultaneous -%} - {{- p.person|chill_entity_render_box({'addLink': true }) -}} - {%- if p.holder %} {{'household.holder'|trans }} {% endif %} - {%- if not loop.last %}, {% endif -%} - {%- endfor -%} - {% endif %} - |
- - | - -