ajust list_with_period search with person render_box (and add new options to it)

This commit is contained in:
2021-08-01 15:21:03 +02:00
parent 4be4cd7279
commit 48873d15c9
11 changed files with 378 additions and 388 deletions

View File

@@ -8,7 +8,9 @@
* addId bool
* addInfo bool
* addAge bool
* addCenter bool
* hLevel integer
* address_multiline bool
* customButtons [
'before' Twig\Markup, (injected with macro)
'replace' Twig\Markup,
@@ -89,10 +91,11 @@
</div>
<div class="item-col">
<ul class="list-content fa-ul">
{% set multiline = (options['address_multiline']) ? true : false %}
{{ person.getLastAddress|chill_entity_render_box({
'render': 'list',
'with_picto': true,
'multiline': false,
'multiline': multiline,
'with_valid_from': false
}) }}
<li>
@@ -111,6 +114,12 @@
{% endif %}
{% endif %}
</li>
{% if options['addCenter'] %}
<li>
<i class="fa fa-li fa-long-arrow-right"></i>
{{ person.center }}
</li>
{% endif %}
</ul>
<ul class="record_actions">
{% if options['customButtons']['before'] is defined %}