소스 검색

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.