From f19a69aa7b74ed5f249e6745809acc85679b8fb5 Mon Sep 17 00:00:00 2001 From: Benno Lang Date: Mon, 20 Feb 2023 14:31:47 +1030 Subject: [PATCH] Add missing UI macro imports --- backend/entities/crud.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/entities/crud.rst b/backend/entities/crud.rst index a519135ae..aa690489a 100644 --- a/backend/entities/crud.rst +++ b/backend/entities/crud.rst @@ -142,6 +142,8 @@ The template that is responsible for displaying the form fields should extend th {# reuse the form theme provided with OroPlatform #} {% form_theme form with '@OroForm/Form/fields.html.twig' %} + {% import '@OroUI/macros.html.twig' as UI %} + {# make the current task accessible with the task variable #} {% set task = form.vars.value %} @@ -224,6 +226,7 @@ The base ``@OroUI/actions/index.html.twig`` template from the OroUIBundle that y :caption: src/Acme/Bundle/DemoBundle/Resources/views/Task/index.html.twig {% extends '@OroUI/actions/index.html.twig' %} + {% import '@OroUI/macros.html.twig' as UI %} {% set gridName = 'acme-tasks-grid' %} {% set pageTitle = 'Task' %}