mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
render box, mechanism to pass custom buttons
This commit is contained in:
@@ -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 -%}
|
||||
|
Reference in New Issue
Block a user