{% set active = seccion is same as(current_seccion) %}
{% set tag = active ? 'span' : 'a' %}
<{{ tag }} class="{{ html_classes('nav-link', {
'active': active,
'disabled': seccion is not same as(constant('App\\Service\\Configuracion\\Cliente::SECCION_GENERAL')) and not is_granted('CLIENTE_HAS_CONSTITUCION', cliente)
}) }}" {% if tag is same as('a') %}href="{{ path(app.request.attributes.get('_route'), {
'seccion': seccion
}|merge(is_granted('ROLE_SIGLO') ? {'cliente': cliente.id} : {})) }}"{% endif %}>
{{ label }}
{{ tag }}>
{% set tag = accion is same as('ver') ? 'span' : 'a' %}
<{{ tag }} class="{{ html_classes('nav-link', {
'active': accion is same as('ver')
}) }}" {% if tag is same as('a') %} href="{{ path('app_admin_cliente_ver', {
'cliente': cliente.id,
'seccion': seccion
}) }}"{% endif %}>
Ver
{{ tag }}>
{% set tag = accion is same as('editar') ? 'span' : 'a' %}
<{{ tag }} class="{{ html_classes('nav-link', {
'active': accion is same as('editar')
}) }}" {% if tag is same as('a') %} href="{{is_granted('ROLE_SIGLO')
? path('app_admin_cliente_editar', {'cliente': cliente.id, 'seccion': seccion})
: path('app_cliente_editar', {'seccion': seccion})
}}"{% endif %}>
Editar
{{ tag }}>