render box, custom buttons before, after or remplacing default

This commit is contained in:
2021-07-29 14:06:00 +02:00
parent ad3fe7cf91
commit 39f6f14467
8 changed files with 55 additions and 33 deletions

View File

@@ -10,10 +10,8 @@
{% if person.isSharingHousehold %}
<li>
<a href="{{ chill_path_add_return_path('chill_person_household_summary', { 'household_id': person.getCurrentHousehold.id }) }}"
class="btn btn-misc">
class="btn btn-chill-pink" title="{{ 'Show household'|trans ~ ' n° ' ~ person.getCurrentHousehold.id }}">
<i class="fa fa-home"></i>
n°&nbsp;
{{ person.getCurrentHousehold.id }}
</a>
</li>
{% endif %}
@@ -40,7 +38,8 @@
{% if participation.enddate is null %}
<div class="item-bloc">
{{ participation.person|chill_entity_render_box({
'render': 'bloc', 'addLink': false, 'addInfo': true, 'customButtons': _self.button_person(participation.person)
'render': 'bloc', 'addLink': false, 'addInfo': true,
'customButtons': { 'before': _self.button_person(participation.person) }
}) }}
</div>
{% endif %}