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