{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if ea.crud.currentAction == 'detail' %}
{% set url = ea_url()
.setController("App\\Controller\\Admin\\Order\\Partial\\Tab#{field.value|capitalize}Controller")
.setAction('edit')
.set('entityId',field.formattedValue.entityId)
.set('tab', field.value|lower)
.set('parentControllerFqcn',ea.getRequest().get('crudControllerFqcn'))
.generateUrl()
%}
<div><p class="text-end">
<a class=" btn btn-sm btn-primary " href="{{ url }}"> <span class="action-label">Bewerk dit tabblad</span>
</a>
</p>
</div>
{#</div>#}
{% else %}
<span title="Message">"Use only on Detailpage"</span>
{% endif %}<br>