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 %}

Edit

- {{ include('/_form.html.twig', {'button_label': 'Update'}) }} + {{ include('/_form.html.twig', {'button_label': 'Update'}) }} back to list - {{ include('/_delete_form.html.twig') }} + {{ include('/_delete_form.html.twig') }} {% endblock %} diff --git a/src/Resources/skeleton/crud/templates/new.tpl.php b/src/Resources/skeleton/crud/templates/new.tpl.php index e2818d2c9..d59320b17 100644 --- a/src/Resources/skeleton/crud/templates/new.tpl.php +++ b/src/Resources/skeleton/crud/templates/new.tpl.php @@ -3,7 +3,7 @@ {% block body %}

Create new

- {{ include('/_form.html.twig') }} + {{ include('/_form.html.twig') }} back to list {% endblock %} diff --git a/src/Resources/skeleton/crud/templates/show.tpl.php b/src/Resources/skeleton/crud/templates/show.tpl.php index d016c6088..8f439b47d 100644 --- a/src/Resources/skeleton/crud/templates/show.tpl.php +++ b/src/Resources/skeleton/crud/templates/show.tpl.php @@ -18,5 +18,5 @@ edit - {{ include('/_delete_form.html.twig') }} + {{ include('/_delete_form.html.twig') }} {% endblock %}