瀏覽代碼

Fix custom action recipe

The new css needs action links to have btn class to be visible.
Armin Weihbold 11 年之前
父節點
當前提交
983f4c1f92
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.