Bug 16263: making authority tags and subfields actions buttons
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / auth_tag_structure.tt
index c495205..df7ae02 100644 (file)
@@ -12,7 +12,7 @@
  $(document).ready(function() {
     $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
         "aoColumnDefs": [
-            { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
+            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
         ],
         "sPaginationType": "four_button"
     }));
             <th>Repeatable</th>
             <th>Mandatory</th>
             <th>Authorized<br />value</th>
-            <th>Subfields</th>
-            <th>Edit</th>
-            <th>Delete</th>
-            </tr>
+            <th>&nbsp;</th>
+        </tr>
     </thead>
     <tbody>
         [% FOREACH loo IN loop %]
             <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
             <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
             <td>[% loo.authorised_value %]</td>
-            <td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
-            <td><a href="[% loo.edit %]">Edit</a></td>
-            <td><a href="[% loo.delete %]">Delete</a></td>
+            <td>
+                <div class="dropdown">
+                    <a class="btn btn-mini dropdown-toggle" id="authtagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
+                        Actions <b class="caret"></b></a>
+                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield %]">
+                        <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
+                        <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
+                        <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
+                    </ul>
+                </div>
+            </td>
         </tr>
         [% END %]
     </tbody>