Merge remote-tracking branch 'origin/new/bug_7986'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / itemtypes.tt
index 9174247..cb3f9ba 100644 (file)
@@ -1,20 +1,20 @@
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Administration &rsaquo; Item Types [% IF ( add_form ) %]&rsaquo; 
+<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF ( add_form ) %]&rsaquo;
   [% IF ( itemtype ) %]
-Modify Item Type '[% itemtype %]'
+Modify item type '[% itemtype %]'
   [% ELSE %]
-Add Item Type
+Add item type
   [% END %]
 [% END %]
 [% IF ( delete_confirm ) %]&rsaquo; 
   [% IF ( total ) %]
-Cannot Delete Item Type '[% itemtype %]'
+Cannot delete item type '[% itemtype %]'
   [% ELSE %]
-Delete Item Type '[% itemtype %]'?
+Delete item type '[% itemtype %]'?
   [% END %]
 [% END %]
 [% IF ( delete_confirmed ) %]&rsaquo; 
-Data Deleted
+Data deleted
 [% END %]
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -85,39 +85,40 @@ function Check(f) {
        }
 }
      $(document).ready(function() {
-        $('#icons > ul').tabs();
+        $('#icons').tabs();
      });
 //]]>
 </script>
 <style type="text/css">
        fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
-       fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
+  fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
        fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
+  fieldset.rows .ui-tabs-nav { margin-left : 10px; }
 </style>
 </head>
-<body>
+<body id="admin_itemtypes" class="admin">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
 
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( add_form ) %]
   [% IF ( itemtype ) %]
-<a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> &rsaquo; Modify Item Type '[% itemtype %]'
+<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Modify item type '[% itemtype %]'
   [% ELSE %]
-<a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> &rsaquo; Add Item Type
+<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Add item type
   [% END %]
 [% END %]
 [% IF ( delete_confirm ) %]
   [% IF ( total ) %]
-<a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> &rsaquo; Cannot Delete Item Type '[% itemtype %]'
+<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Cannot delete item type '[% itemtype %]'
   [% ELSE %]
-<a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> &rsaquo; Delete Item Type '[% itemtype %]'?
+<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo; Delete item type '[% itemtype %]'?
   [% END %]
 [% END %]
 [% IF ( delete_confirmed ) %]
-<a href="/cgi-bin/koha/admin/itemtypes.pl">Item Types</a> &rsaquo;Data Deleted
+<a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a> &rsaquo;Data deleted
 [% END %]
 [% IF ( else ) %]
-Item Types Administration
+Item types administration
 [% END %]</div>
 
 <div id="doc3" class="yui-t2">
@@ -145,14 +146,14 @@ Item Types Administration
        //]]>
        </script>
        <ul class="toolbar">
-       <li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New Item Type</a></li>
+    <li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New item type</a></li>
 </ul></div>[% ELSE %]&nbsp;[% END %]
 
 [% IF ( add_form ) %]
   [% IF ( itemtype ) %]
-      <h3>Modify Item Type</h3>
+      <h3>Modify item type</h3>
   [% ELSE %]
-      <h3>Add Item Type</h3>
+      <h3>Add item type</h3>
   [% END %]
 <form action="[% script_name %]" name="Aform" method="post">
   <input type="hidden" name="op" value="add_validate" />
@@ -175,21 +176,20 @@ Item Types Administration
      [% IF ( noItemTypeImages ) %]
         <li><span class="label">Image: </span>Item type images are disabled. To enable them, turn off the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=noItemTypeImages">noItemTypeImages system preference</a></li></ol>
         [% ELSE %]</ol>
-               <div id="icons" class="toptabs">
-               <h5 style="margin-left:10px;">Choose an Icon:</h5>
+    <div id="icons" class="toptabs" style="clear:both">
+        <h5 style="margin-left:10px;">Choose an icon:</h5>
                        <ul>
-                                       <li><a href="/cgi-bin/koha/admin/itemtypes.pl#none">None</a></li>
+          <li><a href="#none">None</a></li>
                                  [% FOREACH imageset IN imagesets %]
-            [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/admin/itemtypes.pl#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
+            [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
                                  [% END %]
-                                 [% IF ( remote_image ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/admin/itemtypes.pl#remote">Remote Image</a></li>
+                  [% IF ( remote_image ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#remote">Remote image</a></li>
                        </ul>
-               </div>
   <div id="none"><ul>
   <li><label for="noimage">No image: </label><input type="radio" name="image" id="noimage" value="removeImage" /></li>
   </ul>
   <br class="clear" /></div>
-        
+
   [% FOREACH imageset IN imagesets %]
   <div id="[% imageset.imagesetname %]"><ul>
   [% FOREACH image IN imageset.images %]
@@ -225,6 +225,7 @@ Item Types Administration
   <br class="clear" />
 </div>
 [% END %]
+</div>
 <ol>
       <li>
           <label for="notforloan">Not for loan</label>   [% IF ( notforloan ) %]
@@ -257,10 +258,10 @@ Item Types Administration
 
 [% IF ( delete_confirm ) %]
 [% IF ( total ) %]<div class="dialog message">
-<h3>Cannot Delete Item Type</h3>
+<h3>Cannot delete item type</h3>
 <p><strong>This record is used [% total %] times</strong>. Deletion is not possible.</p>
 [% ELSE %]<div class="dialog alert">
-<h3>Delete Item Type '[% itemtype %]'?</h3>
+<h3>Delete item type '[% itemtype %]'?</h3>
 [% END %]
 <table>
                <tr>
@@ -284,25 +285,10 @@ Item Types Administration
 [% END %]
 
 [% IF ( else ) %]
-<h2>Item Types Administration</h2>
-[% IF ( loop ) %]<span id="pagertable_item_type" class="pager">
-  <form class="formpager">&nbsp;<strong>page(s)</strong>:&nbsp;
-    <img src="[% interface %]/prog/img/first.png" class="first"/>
-    <img src="[% interface %]/prog/img/prev.png" class="prev"/>
-    <input type="text" size="5" class="pagedisplay"/>
-    <img src="[% interface %]/prog/img/next.png" class="next"/>
-    <img src="[% interface %]/prog/img/last.png" class="last"/>
-    , entries/page:
-    <select class="pagesize">
-          <option selected="selected" value="10">10</option>
-      <option value="20">20</option>
-      <option value="30">30</option>
-      <option value="40">40</option>
-      <option value="50">50</option>
-      <option value="100">100</option>
-    </select>
-  </form>
-</span>
+<h2>Item types administration</h2>
+[% IF ( loop ) %]<div id="pagertable_item_type">
+[% INCLUDE 'table-pager.inc' perpage='10' %]
+</div>
 <table id="table_item_type">
   <thead>
     [% UNLESS ( noItemTypeImages ) %]<th>Image</th>[% END %]