diff --git a/src/Maker/MakeCrud.php b/src/Maker/MakeCrud.php index 37040658c..4bd748c1b 100644 --- a/src/Maker/MakeCrud.php +++ b/src/Maker/MakeCrud.php @@ -193,6 +193,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen 'entity_twig_var_singular' => $entityTwigVarSingular, 'entity_identifier' => $entityDoctrineDetails->getIdentifier(), 'route_name' => $routeName, + 'templates_path' => $templatesPath, ], 'index' => [ 'entity_class_name' => $entityClassDetails->getShortName(), @@ -205,6 +206,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen 'new' => [ 'entity_class_name' => $entityClassDetails->getShortName(), 'route_name' => $routeName, + 'templates_path' => $templatesPath, ], 'show' => [ 'entity_class_name' => $entityClassDetails->getShortName(), @@ -212,6 +214,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen 'entity_identifier' => $entityDoctrineDetails->getIdentifier(), 'entity_fields' => $entityDoctrineDetails->getDisplayFields(), 'route_name' => $routeName, + 'templates_path' => $templatesPath, ], ]; diff --git a/src/Resources/skeleton/crud/templates/edit.tpl.php b/src/Resources/skeleton/crud/templates/edit.tpl.php index f0d42f5ff..7101cbdd4 100644 --- a/src/Resources/skeleton/crud/templates/edit.tpl.php +++ b/src/Resources/skeleton/crud/templates/edit.tpl.php @@ -3,9 +3,9 @@ {% block body %}