Bug 16794: Group the 2 action buttons into the same column
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 3 Jul 2016 15:07:33 +0000 (16:07 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 13:14:37 +0000 (13:14 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/js/categories.js
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt

index 0c34379..ff908b1 100644 (file)
@@ -23,7 +23,7 @@ jQuery.validator.addMethod( "enrollment_period", function(){
 $(document).ready(function() {
     $("#table_categorie").dataTable($.extend(true, {}, dataTablesDefaults, {
         "aoColumnDefs": [{
-            "aTargets": [-1, -2],
+            "aTargets": [-1],
             "bSortable": false,
             "bSearchable": false
         }, {
@@ -94,4 +94,4 @@ $(document).ready(function() {
         }
 
     });
-});
\ No newline at end of file
+});
index b555505..003cb03 100644 (file)
                     [% END %]
                     <th scope="col">Branches limitations</th>
                     <th scope="col">Default privacy</th>
-                    <th scope="col">&nbsp; </th>
-                    <th scope="col">&nbsp; </th>
+                    <th scope="col">Actions</th>
                 </tr>
             </thead>
             <tbody>
                                 Forever
                             [% END %]
                         </td>
-                        <td class="actions"><a class="btn btn-mini" href="/cgi-bin/koha/admin/categories.pl?op=add_form&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-pencil"></i> Edit</a></td>
-                        <td class="actions"><a class="btn btn-mini" href="/cgi-bin/koha/admin/categories.pl?op=delete_confirm&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-trash"></i> Delete</a></td>
+                        <td class="actions">
+                            <a class="btn btn-mini" href="/cgi-bin/koha/admin/categories.pl?op=add_form&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-pencil"></i> Edit</a>
+                            <a class="btn btn-mini" href="/cgi-bin/koha/admin/categories.pl?op=delete_confirm&amp;categorycode=[% category.categorycode |uri %]"><i class="fa fa-trash"></i> Delete</a>
+                        </td>
                     </tr>
                 [% END %]
             </tbody>