{# Bouton "Terminer" : visible si statut = pending ou in_progress #} {% if admin.hasAccess('edit', object) and admin.hasRoute('complete') and object.status in [constant('App\\Entity\\GdprRequest::STATUS_PENDING'), constant('App\\Entity\\GdprRequest::STATUS_IN_PROGRESS')] %} Terminer {% endif %}