Merge remote branch 'kc/new/bug_5649' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / overduerules.tmpl
index 566b246..c4749cb 100644 (file)
@@ -9,6 +9,7 @@ $(document).ready(function() {
         $('#branch').change(function() {
                 $('#selectlibrary').submit();
         });
+           $('#rulestabs > ul').tabs();
 });
 //]]>
 </script>
@@ -28,7 +29,7 @@ $(document).ready(function() {
 
         <h1>Defining <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></h1>
         <div class="help">
-            <p>Delay is the number of days after an issue is due before an action is triggered. </p>
+            <p>Delay is the number of days after an checkout is due before an action is triggered. </p>
             <p>If you want Koha to trigger an action (send a letter or debar member), a delay value is required.</p>
             <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
         </div>
@@ -49,16 +50,16 @@ $(document).ready(function() {
             <!--TMPL_IF Name="ERROR"-->
             <div class="dialog alert">
                 <h3>Data error</h3>
-                <p>The following fields have a forbidden value. Correct them and press OK again :</p>
+                <p>The following errors were found. Please correct them and submit again:</p>
                 <ul>
                 <!-- TMPL_IF NAME="ERRORDELAY" -->
-                    <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="BORERR"--> borrower category has some unexpected characters. There should be only numerical characters. </li>
+                    <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="BORERR"--> patron category has some unexpected characters. There should be only numerical characters. </li>
                 <!-- /TMPL_IF -->
                 <!-- TMPL_IF NAME="ERRORUSELESSDELAY" -->
-                    <li>No letter or debar action specified for delay <!--TMPL_VAR Name="ERRORUSELESSDELAY"--> for <!--TMPL_VAR Name="BORERR"--> borrower category.  If a delay is supplied, either a letter, debar action, or both should be specified.</li>
+                    <li>No letter or debar action specified for delay <!--TMPL_VAR Name="ERRORUSELESSDELAY"--> for <!--TMPL_VAR Name="BORERR"--> patron category.  If a delay is supplied, either a letter, debar action, or both should be specified.</li>
                 <!-- /TMPL_IF -->
                 <!-- TMPL_IF NAME="ERRORORDER" -->
-                    <li>Delay1 should be less than Delay2 which should be less than Delay3 for <!--TMPL_VAR Name="BORERR"--> borrower category </li>
+                    <li>The first notice's delay should be less than the second, which should be less than the third for the <strong><!--TMPL_VAR Name="BORERR"--></strong> patron category </li>
                 <!-- /TMPL_IF -->
                 </ul>
             </div>
@@ -67,18 +68,18 @@ $(document).ready(function() {
             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
                 <input type="hidden" name="op" value="save" />
                 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
-                <table>
-                    <caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF-->
-                    <!--TMPL_IF Name="datasaved"-->
-                        <br /><div class="dialog message">INPUT SAVED</div>
-                    <!--/TMPL_IF -->
-                    </caption>
-                    <tr>
-                        <th rowspan="2">&nbsp;</th><th colspan="3" scope="col">First</th><th colspan="3" scope="col">Second</th><th colspan="3" scope="col">Third</th>
-                    </tr>
-                    <tr>
-                        <th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th>
-                    </tr>
+                               <h3>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF--></h3>
+                    <!--TMPL_IF Name="datasaved"--><div class="dialog message">INPUT SAVED</div> <!--/TMPL_IF -->
+
+  <div id="rulestabs" class="toptabs">
+       <ul class="ui-tabs-nav">
+      <li><a href="#first">First</a></li>
+      <li><a href="#second">Second</a></li>
+      <li><a href="#third">Third</a></li>
+       </ul>
+
+<div id="first"><table>
+                                       <tr><th>&nbsp;</th><th scope="col">Delay</th><th scope="col">First Letter</th><th scope="col">Debar</th></tr>
                     <!-- TMPL_LOOP NAME="table" -->
                      <!-- TMPL_UNLESS NAME="__odd__" -->
                                 <tr class="highlight">
@@ -87,7 +88,7 @@ $(document).ready(function() {
                             <!-- /TMPL_UNLESS -->
                             <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
 <td>
-                                <input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
+                                <input type="text" name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
                             </td>
 <td>
                             <!--TMPL_IF Name="noletter" -->
@@ -112,8 +113,22 @@ $(document).ready(function() {
                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
                                 <!-- /TMPL_IF -->
                             </td>
+                                                       </tr>
+                                                       <!-- /TMPL_LOOP -->
+                                                       </table>
+</div>
+
+<div id="second"><table>
+                                       <tr><th>&nbsp;</th><th scope="col">Delay</th><th scope="col">Second Letter</th><th scope="col">Debar</th></tr>
+                    <!-- TMPL_LOOP NAME="table" -->
+                     <!-- TMPL_UNLESS NAME="__odd__" -->
+                                <tr class="highlight">
+                            <!-- TMPL_ELSE -->
+                                <tr>
+                            <!-- /TMPL_UNLESS -->
+                            <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
 <td>
-                                <input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
+                                <input type="text" name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
                             </td>
 <td>
                             <!--TMPL_IF Name="noletter" -->
@@ -138,8 +153,22 @@ $(document).ready(function() {
                                     <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
                                 <!-- /TMPL_IF -->
                             </td>
+                                                       </tr>
+                                                       <!-- /TMPL_LOOP -->
+                                                       </table>
+</div>
+
+<div id="third"><table>
+                                       <tr><th>&nbsp;</th><th scope="col">Delay</th><th scope="col">Third Letter</th><th scope="col">Debar</th></tr>
+                    <!-- TMPL_LOOP NAME="table" -->
+                     <!-- TMPL_UNLESS NAME="__odd__" -->
+                                <tr class="highlight">
+                            <!-- TMPL_ELSE -->
+                                <tr>
+                            <!-- /TMPL_UNLESS -->
+                            <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
 <td>
-                                <input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
+                                <input type="text" name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
                             </td>
 <td>
                             <!--TMPL_IF Name="noletter" -->
@@ -167,6 +196,9 @@ $(document).ready(function() {
                         </tr>
                     <!-- /TMPL_LOOP -->
                 </table>
+</div>
+</div>
+
                 <fieldset class="action"><input type="submit" value="Save Changes" /></fieldset>
             </form>
             <!-- TMPL_ELSE -->