Просмотр исходного кода

Merge pull request #3871 from deguif/fix-button-action-cs

Fixed CS on action button
Christian Gripp 9 лет назад
Родитель
Сommit
e9aefa59f1

+ 1 - 1
Resources/views/Button/acl_button.html.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.id(object) and admin.isGranted('MASTER', object)%}
+{% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.id(object) and admin.isGranted('MASTER', object) %}
     <a class="sonata-action-element" href="{{ admin.generateObjectUrl('acl', object) }}">
         <i class="fa fa-users"></i>
         {{ 'link_action_acl'|trans({}, 'SonataAdminBundle') }}</a>

+ 1 - 1
Resources/views/Button/create_button.html.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% if admin.hasRoute('create') and admin.isGranted('CREATE')%}
+{% if admin.hasRoute('create') and admin.isGranted('CREATE') %}
     {% if admin.subClasses is empty %}
         <a class="sonata-action-element" href="{{ admin.generateUrl('create') }}">
             <i class="fa fa-plus-circle"></i>

+ 1 - 1
Resources/views/Button/edit_button.html.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% if admin.hasRoute('edit') and admin.id(object) and admin.isGranted('EDIT', object)%}
+{% if admin.hasRoute('edit') and admin.id(object) and admin.isGranted('EDIT', object) %}
     <a class="sonata-action-element" href="{{ admin.generateObjectUrl('edit', object) }}">
         <i class="fa fa-edit"></i>
         {{ 'link_action_edit'|trans({}, 'SonataAdminBundle') }}</a>

+ 1 - 1
Resources/views/Button/list_button.html.twig

@@ -9,7 +9,7 @@ file that was distributed with this source code.
 
 #}
 
-{% if admin.hasroute('list') and admin.isGranted('LIST')%}
+{% if admin.hasroute('list') and admin.isGranted('LIST') %}
     <a class="sonata-action-element" href="{{ admin.generateUrl('list') }}">
         <i class="fa fa-list"></i>
         {{ 'link_action_list'|trans({}, 'SonataAdminBundle') }}</a>