Bug 11490: Add prefs MaxItemsToProcessForBatchMod and MaxItemsToDisplayForBatchDel
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / authtypes.tt
index e72cc60..9c7d419 100644 (file)
@@ -1,20 +1,20 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Administration &rsaquo; Authority types
 [% IF op == 'add_form' %]
-&rsaquo; [% IF authority_type.authtypecode %]Modify authority type[% ELSE %]New authority type[% END %]
+&rsaquo; [% IF authority_type.authtypecode.defined %]Modify authority type[% ELSE %]New authority type[% END %]
 [% ELSIF op == 'delete_confirm' %]
 &rsaquo; Confirm deletion of authority type
 [% END %]
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
 [% INCLUDE 'datatables.inc' %]
 <script type="text/javascript">
 //<![CDATA[
     $(document).ready(function() {
         $("#authtypes").dataTable($.extend(true, {}, dataTablesDefaults, {
             "aoColumnDefs": [
-                { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
+                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
             ],
             "sPaginationType": "four_button"
         }));
@@ -32,7 +32,7 @@
 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
 &rsaquo; <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
 [% IF op == 'add_form' %]
-&rsaquo; [% IF authority_type.authtypecode %]Modify[% ELSE %]New[% END %] Authority type
+&rsaquo; [% IF authority_type.authtypecode.defined %]Modify[% ELSE %]New[% END %] Authority type
 [% ELSIF op == 'delete_confirm' %]
 &rsaquo; Confirm deletion of authority type
 [% END %]
@@ -70,7 +70,7 @@
     <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
         <fieldset class="rows">
             <legend>
-                [% IF authority_type.authtypecode %]
+                [% IF authority_type.authtypecode.defined %]
                     Modify authority type
                 [% ELSE %]
                     New authority type
@@ -78,7 +78,7 @@
             </legend>
             <ol>
                 <li>
-                    [% IF authority_type.authtypecode %]
+                    [% IF authority_type.authtypecode.defined %]
                             <span class="label">Authority type</span>
                             <input type="hidden" name="op" value="add_validate" />
                             <input type="hidden" name="checked" value="0" />
                     <label for="auth_tag_to_report">Authority field to copy: </label>
                     <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
                     <input type="hidden" name="op" value="add_validate" />
-                    [% IF authority_type.authtypecode %]
+                    [% IF authority_type.authtypecode.defined %]
                         <input type="hidden" name="is_a_modif" value="1" />
                     [% END %]
                 </li>
             <th>Summary</th>
             <th>Auth field copied</th>
             <th>&nbsp;</th>
-            <th>Edit</th>
-            <th>Delete</th>
         </tr>
         </thead>
         <tbody>
                 <td>[% authority_type.authtypetext %]</td>
                 <td>[% authority_type.summary %]</td>
                 <td>[% authority_type.auth_tag_to_report %]</td>
-                <td><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode %]" class="button parameters" >MARC structure</a></td>
-                <td><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode |html %]">Edit</a></td>
-                <td><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&amp;authtypecode=[% authority_type.authtypecode |html %]">Delete</a></td>
+                <td>
+                  <div class="dropdown">
+                    <a class="btn btn-mini dropdown-toggle" id="authtypeactions[% authority_type.authtypecode %]" role="button" data-toggle="dropdown" href="#">
+                      Actions <b class="caret"></b></a>
+                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtypeactions[% authority_type.authtypecode %]">
+                      <li><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode %]" class="button parameters"><i class="fa fa-eye"></i> MARC structure</a></li>
+                      <li><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&amp;authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-pencil"></i> Edit</a></li>
+                      [% IF authority_type.authtypecode %]<li><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&amp;authtypecode=[% authority_type.authtypecode |html %]"><i class="fa fa-trash"></i> Delete</a></li>[% END %]
+                    </ul>
+                  </div>
+                </td>
             </tr>
         [% END %]
         <tbody>