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

@@ -8,6 +8,7 @@
* addEntity bool
* addInfo bool
* hLevel integer
* customButtons Twig\Markup (html)
#}
{% macro raw(thirdparty, options) %}
@@ -77,9 +78,15 @@
</li>
</ul>
<ul class="record_actions">
<li>
<a href="{{ path('chill_3party_3party_show', { thirdparty_id: thirdparty.id }) }}" class="btn btn-show" target="_blank" title="Voir"></a>
</li>
{%- if is_granted('CHILL_3PARTY_3PARTY_SHOW', thirdparty) -%}
<li>
<a class="btn btn-show" target="_blank" title="{{ 'Show'|trans }}"
href="{{ path('chill_3party_3party_show', { thirdparty_id: thirdparty.id }) }}"></a>
</li>
{% endif %}
{% if options['customButtons'] %}
{{ options['customButtons'] }}
{% endif %}
</ul>
</div>
</div>