Skip to content

Commit

Permalink
Merge pull request #9 from dr-matt-smith/master
Browse files Browse the repository at this point in the history
fixes for new version
  • Loading branch information
sadikoff committed Feb 13, 2018
2 parents 5727e63 + 7227754 commit c7346e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Maker/MakeCrud.php
Expand Up @@ -123,6 +123,8 @@ public function getFiles(array $params): array
__DIR__.'/../Resources/skeleton/templates/show.tpl.php' => 'templates/'.$params['route_name'].'/show.html.twig',
__DIR__.'/../Resources/skeleton/templates/new.tpl.php' => 'templates/'.$params['route_name'].'/new.html.twig',
__DIR__.'/../Resources/skeleton/templates/edit.tpl.php' => 'templates/'.$params['route_name'].'/edit.html.twig',
__DIR__.'/../Resources/skeleton/templates/_form.tpl.php' => 'templates/'.$params['route_name'].'/_form.html.twig',
__DIR__.'/../Resources/skeleton/templates/_delete_form.tpl.php' => 'templates/'.$params['route_name'].'/_delete_form.html.twig',
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/skeleton/templates/_delete_form.tpl.php
@@ -1,5 +1,5 @@
<form method="post" action="{{ path('<?= $route_name; ?>_delete', {'<?= $entity_identifier; ?>':identifier}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_method" value="_DELETE">
<input type="hidden" name="_method" value="DELETE">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ identifier) }}">
<input type="submit" value="Delete">
</form>

0 comments on commit c7346e3

Please sign in to comment.