diff --git a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php index 2df3d2147..103de6d84 100644 --- a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php +++ b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php @@ -361,8 +361,8 @@ class WorkflowController extends AbstractController return $this->render( '@ChillMain/Workflow/index.html.twig', [ + 'handler' => $handler, 'handler_template' => $handler->getTemplate($entityWorkflow), - 'handler_template_title' => $handler->getTemplateTitle($entityWorkflow), 'handler_template_data' => $handler->getTemplateData($entityWorkflow), 'transition_form' => isset($transitionForm) ? $transitionForm->createView() : null, 'entity_workflow' => $entityWorkflow, diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig index 1f95acaf5..1a6f3103b 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig @@ -21,6 +21,8 @@ {{ encore_entry_link_tags('mod_wopi_link') }} {% endblock %} +{% import '@ChillMain/Workflow/macro_breadcrumb.html.twig' as macro %} + {% block content %}

{{ block('title') }}

@@ -32,8 +34,11 @@ #}
- {% include handler_template_title with handler_template_data|merge({'breadcrumb': true }) %} +

{{ handler.entityTitle(entity_workflow) }}

+ + {{ macro.breadcrumb({'entity_workflow': entity_workflow}) }}
+ {% include handler_template with handler_template_data|merge({'display_action': true }) %} {% if is_granted('CHILL_MAIN_WORKFLOW_DELETE', entity_workflow) %}