Explorar o código

Fix custom action recipe

The new css needs action links to have btn class to be visible.
Armin Weihbold %!s(int64=11) %!d(string=hai) anos
pai
achega
983f4c1f92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Resources/doc/reference/recipe_custom_action.rst

+ 1 - 1
Resources/doc/reference/recipe_custom_action.rst

@@ -132,7 +132,7 @@ namespace of your custom Admin Controller.
 
     {# src/Acme/DemoBundle/Resources/views/CRUD/list__action_clone.html.twig #}
 
-    <a href="{{ admin.generateObjectUrl('clone', object) }}">clone</a>
+    <a class="btn btn-small" href="{{ admin.generateObjectUrl('clone', object) }}">clone</a>
 
 Right now ``clone`` is not a known route, we define it in the next step.