Add a date field in news edition, and permit to set the "timestamp" field, that is...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / overduerules.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Notice Triggers</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function() {
8         $('#selectlibrary').find("input:submit").hide();
9         $('#branch').change(function() {
10                 $('#selectlibrary').submit();
11         });
12 });
13 //]]>
14 </script>
15
16 </head>
17 <body>
18 <!-- TMPL_INCLUDE NAME="header.inc" -->
19 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
20
21 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Notice Triggers</div>
22
23 <div id="doc3" class="yui-t2">
24    
25    <div id="bd">
26     <div id="yui-main">
27     <div class="yui-b">
28
29         <h1>Defining <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></h1>
30         <div class="help">
31             <p>Delay is the number of days after an issue is due before an action is triggered. </p>
32             <p>If you want Koha to trigger an action (send a letter or debar member), a delay value is required.</p>
33             <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
34         </div>
35             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
36             <label for="branch">Select a library:</label>
37                 <select id="branch" name="branch">
38                     <option value="">Default</option>
39                     <!-- TMPL_LOOP NAME="branchloop" -->
40                         <!-- TMPL_IF NAME="selected" -->
41                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
42                         <!-- TMPL_ELSE -->
43                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
44                         <!-- /TMPL_IF -->
45                     <!-- /TMPL_LOOP -->
46                 </select>
47                 <input type="submit" value="Select" />
48             </form>
49             <!--TMPL_IF Name="ERROR"-->
50             <div class="dialog alert">
51                 <h3>Data error</h3>
52                 <p>The following fields have a forbidden value. Correct them and press OK again :</p>
53                 <ul>
54                 <!-- TMPL_IF NAME="ERRORDELAY" -->
55                     <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="BORERR"--> borrower category has some unexpected characters. There should be only numerical characters. </li>
56                 <!-- /TMPL_IF -->
57                 <!-- TMPL_IF NAME="ERRORUSELESSDELAY" -->
58                     <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>
59                 <!-- /TMPL_IF -->
60                 <!-- TMPL_IF NAME="ERRORORDER" -->
61                     <li>Delay1 should be less than Delay2 which should be less than Delay3 for <!--TMPL_VAR Name="BORERR"--> borrower category </li>
62                 <!-- /TMPL_IF -->
63                 </ul>
64             </div>
65             <!--/TMPL_IF -->
66             <!-- TMPL_IF name="table" -->
67             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
68                 <input type="hidden" name="op" value="save" />
69                 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
70                 <table>
71                     <caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF-->
72                     <!--TMPL_IF Name="datasaved"-->
73                         <br /><div class="dialog message">INPUT SAVED</div>
74                     <!--/TMPL_IF -->
75                     </caption>
76                     <tr>
77                         <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>
78                     </tr>
79                     <tr>
80                         <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>
81                     </tr>
82                     <!-- TMPL_LOOP NAME="table" -->
83                      <!-- TMPL_IF NAME="toggle" -->
84                                 <tr class="highlight">
85                             <!-- TMPL_ELSE -->
86                                 <tr>
87                             <!-- /TMPL_IF -->
88                             <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
89 <td>
90                                 <input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
91                             </td>
92 <td>
93                             <!--TMPL_IF Name="noletter" -->
94                                 <input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->" />
95                             <!--TMPL_ELSE -->
96                                 <select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
97                                     <option value="">No notice</option>
98                                     <!-- TMPL_LOOP name="letterloop1" -->
99                                         <!-- TMPL_IF NAME="selected" -->
100                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
101                                         <!-- TMPL_ELSE -->
102                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
103                                         <!-- /TMPL_IF -->
104                                     <!-- /TMPL_LOOP -->
105                                 </select>
106                             <!--/TMPL_IF -->
107                             </td>
108 <td>
109                                 <!-- TMPL_IF NAME="debarred1" -->
110                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
111                                 <!-- TMPL_ELSE -->
112                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
113                                 <!-- /TMPL_IF -->
114                             </td>
115 <td>
116                                 <input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
117                             </td>
118 <td>
119                             <!--TMPL_IF Name="noletter" -->
120                                 <input type="text" name="letter2-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter2"-->" />
121                             <!--TMPL_ELSE -->
122                                 <select name="letter2-<!-- TMPL_VAR NAME="overduename" -->">
123                                     <option value="">No notice</option>
124                                         <!-- TMPL_LOOP name="letterloop2" -->
125                                             <!-- TMPL_IF NAME="selected" -->
126                                                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
127                                             <!-- TMPL_ELSE -->
128                                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
129                                             <!-- /TMPL_IF -->
130                                         <!-- /TMPL_LOOP -->
131                                 </select>
132                             <!--/TMPL_IF -->
133                             </td>
134 <td>
135                                 <!-- TMPL_IF NAME="debarred2" -->
136                                     <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
137                                 <!-- TMPL_ELSE -->
138                                     <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
139                                 <!-- /TMPL_IF -->
140                             </td>
141 <td>
142                                 <input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
143                             </td>
144 <td>
145                             <!--TMPL_IF Name="noletter" -->
146                                 <input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->" />
147                             <!--TMPL_ELSE -->
148                                 <select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
149                                     <option value="">No notice</option>
150                                     <!-- TMPL_LOOP name="letterloop3" -->
151                                         <!-- TMPL_IF NAME="selected" -->
152                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
153                                         <!-- TMPL_ELSE -->
154                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
155                                         <!-- /TMPL_IF -->
156                                     <!-- /TMPL_LOOP -->
157                                 </select>
158                             <!--/TMPL_IF -->
159                             </td>
160 <td>
161                                 <!-- TMPL_IF NAME="debarred3" -->
162                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
163                                 <!-- TMPL_ELSE -->
164                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
165                                 <!-- /TMPL_IF -->
166                             </td>
167                         </tr>
168                     <!-- /TMPL_LOOP -->
169                 </table>
170                 <fieldset class="action"><input type="submit" value="Save Changes" /></fieldset>
171             </form>
172             <!-- TMPL_ELSE -->
173                 <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
174                 <div class="warning">If this is not what you were expecting, go to <a href="../admin/categorie.pl">patron categories</p></div>
175             <!-- /TMPL_IF -->
176     </div>
177     </div>
178     <div class="yui-b noprint">
179         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
180     </div>
181 </div>
182 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->