فهرست منبع

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.