Browse Source

Changed style of buttons in actions.

Maximiliano Schvindt 6 năm trước cách đây
mục cha
commit
965cdcafb0

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

@@ -12,6 +12,6 @@ file that was distributed with this source code.
 {% if admin.hasAccess('delete', object) and owner_voter.vote(token_security.token, object, ['delete']) >= 0 and admin.hasRoute('delete') %}
     <a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn btn-sm btn-default delete_link" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
         <i class="fa fa-times" aria-hidden="true"></i>
-        {{ 'action_delete'|trans({}, 'SonataAdminBundle') }}
+        {# {{ 'action_delete'|trans({}, 'SonataAdminBundle') }} #}
     </a>
 {% endif %}

+ 2 - 3
app/Resources/SonataAdminBundle/views/CRUD/list__action_edit.html.twig

@@ -10,9 +10,8 @@ file that was distributed with this source code.
 #}
 
 {% if admin.hasAccess('edit', object) and owner_voter.vote(token_security.token, object, ['edit']) >= 0 and admin.hasRoute('edit') %}
-    <a href="{{ admin.generateObjectUrl('edit', object) }}" class="btn btn-sm btn-default 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="fa fa-pencil" aria-hidden="true"></i>
-        {{ 'action_edit'|trans({}, 'SonataAdminBundle') }}
+        {# {{ 'action_edit'|trans({}, 'SonataAdminBundle') }} #}
     </a>
 {% endif %}

+ 17 - 0
app/Resources/SonataAdminBundle/views/CRUD/list__action_show.html.twig

@@ -0,0 +1,17 @@
+{#
+
+This file is part of the Sonata package.
+
+(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+
+#}
+
+{% if admin.hasAccess('show', object) and owner_voter.vote(token_security.token, object, ['show']) >= 0 and admin.hasRoute('show') %}
+    <a href="{{ admin.generateObjectUrl('show', object) }}" class="btn btn-sm btn-default view_link" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
+        <i class="fa fa-eye" aria-hidden="true"></i>
+        {# {{ 'action_show'|trans({}, 'SonataAdminBundle') }} #}
+    </a>
+{% endif %}