浏览代码

Merge pull request #2057 from EmmanuelVella/bs3-fixes

Fix list action buttons css for bootstrap 3
Thomas 11 年之前
父节点
当前提交
fccda3d36a

+ 1 - 1
Resources/views/CRUD/list__action_delete.html.twig

@@ -10,7 +10,7 @@ file that was distributed with this source code.
 #}
 
 {% if admin.isGranted('DELETE', object) and admin.hasRoute('delete') %}
-    <a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn btn-small delete_link" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
+    <a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn btn-sm btn-default delete_link" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
         <i class="glyphicon glyphicon-remove"></i>
         {{ 'action_delete'|trans({}, 'SonataAdminBundle') }}
     </a>

+ 1 - 1
Resources/views/CRUD/list__action_edit.html.twig

@@ -10,7 +10,7 @@ file that was distributed with this source code.
 #}
 
 {% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %}
-    <a href="{{ admin.generateObjectUrl('edit', object) }}" class="btn btn-small edit_link" title="{{ 'action_edit'|trans({}, 'SonataAdminBundle') }}">
+    <a href="{{ admin.generateObjectUrl('edit', object) }}" class="btn btn-sm btn-default edit_link" title="{{ 'action_edit'|trans({}, 'SonataAdminBundle') }}">
         <i class="glyphicon glyphicon-edit"></i>
         {{ 'action_edit'|trans({}, 'SonataAdminBundle') }}
     </a>

+ 1 - 1
Resources/views/CRUD/list__action_show.html.twig

@@ -10,7 +10,7 @@ file that was distributed with this source code.
 #}
 
 {% if admin.isGranted('VIEW', object) and admin.hasRoute('show') %}
-    <a href="{{ admin.generateObjectUrl('show', object) }}" class="btn btn-small view_link" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
+    <a href="{{ admin.generateObjectUrl('show', object) }}" class="btn btn-sm btn-default view_link" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
         <i class="glyphicon glyphicon-zoom-in"></i>
         {{ 'action_show'|trans({}, 'SonataAdminBundle') }}
     </a>