Browse Source

Merge pull request #2629 from julien-maitan/master

Enable select button on sonata_type_model_list
Thomas 10 years ago
parent
commit
8121510682

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

@@ -35,7 +35,7 @@ file that was distributed with this source code.
                     <form action="{{ admin.generateUrl('batch', {'filter': admin.filterParameters}) }}" method="POST" >
                         <input type="hidden" name="_sonata_csrf_token" value="{{ csrf_token }}">
                     {% endif %}
-                        <table class="table table-bordered table-striped">
+                        <table class="table table-bordered table-striped sonata-ba-list">
                             {% block table_header %}
                                 <thead>
                                     <tr class="sonata-ba-list-field-header">

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

@@ -12,7 +12,7 @@ file that was distributed with this source code.
 {% extends admin.getTemplate('base_list_field') %}
 
 {% block field %}
-    <a class="btn btn-default" href="#">
+    <a class="btn btn-default" href="{{ admin.generateObjectUrl('edit', object) }}">
         <i class="glyphicon glyphicon-arrow-right"></i>
         {{ 'list_select'|trans({}, 'SonataAdminBundle') }}
     </a>