render box, mechanism to pass custom buttons

This commit is contained in:
2021-07-29 11:20:45 +02:00
parent 4e9916534f
commit ad3fe7cf91
5 changed files with 36 additions and 23 deletions

View File

@@ -7,6 +7,7 @@
* addEntity bool
* addInfo bool
* hLevel integer
* customButtons Twig\Markup (html)
#}
{% macro raw(person, options) %}
@@ -92,13 +93,17 @@
{%- endif -%}
</li>
</ul>
{%- if is_granted('CHILL_PERSON_SEE', person) -%}
<ul class="record_actions">
<li><a class="btn btn-show" target="_blank" title="{{ 'Show'|trans }}"
href="{{ path('chill_person_view', { person_id: person.id }) }}"></a>
</li>
{%- if is_granted('CHILL_PERSON_SEE', person) -%}
<li>
<a class="btn btn-show" target="_blank" title="{{ 'Show'|trans }}"
href="{{ path('chill_person_view', { person_id: person.id }) }}"></a>
</li>
{%- endif -%}
{% if options['customButtons'] %}
{{ options['customButtons'] }}
{% endif %}
</ul>
{%- endif -%}
</div>
</div>
{%- endif -%}