first go at moving templates to a modules/ dir
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / overduerules.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Overdue Rules</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
7
8         <h1>Defining <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></h1>
9         <div class="help">
10                 <p>Delay is the number of days after an issue is due before an action is triggered. </p>
11                 <p>If you want Koha to trigger an action (send a letter or debar member), delay is needed.</p>
12                 <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
13         </div>
14                 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
15                 <label for="branch">Select a branch :</label>
16                         <select id="branch" name="branch">
17                                 <option value="">Default</option>
18                         <!-- TMPL_LOOP NAME="branchloop" -->
19                                 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
20                                 <!-- TMPL_ELSE -->
21                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
22                                 <!-- /TMPL_IF --><!-- /TMPL_LOOP --></select>
23                         <input type="submit" value="Select" />
24                 </form>
25                 <!--TMPL_IF Name="ERROR"-->
26                 <div class="error">
27                 <h3>Data error</h3>
28                         <p>The following fields have a forbidden value. Correct them and press OK again :</p><ul>
29                         <!-- TMPL_IF NAME="ERRORDELAY" -->
30                                 <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="bor"--> borrower category has some unexpected characters. There should be only numerical characters. </li>
31                         <!-- /TMPL_IF -->
32                         <!-- TMPL_IF NAME="ERRORORDER" -->
33                                 <li>Delay1 should be less than Delay2 which should be less than Delay3 for <!--TMPL_VAR Name="bor"--> borrower category </li>
34                 <!-- /TMPL_IF -->
35                         </ul></div>
36                 <!--/TMPL_IF -->
37                 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
38                         <input type="hidden" name="op" value="save" />
39                         
40                         <table>
41                         <caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default branch <!--/TMPL_IF-->          <!--TMPL_IF Name="datasaved"-->
42                 <br /><h3 align="center">INPUT SAVED</h3>
43                 <!--/TMPL_IF -->
44                         </caption>
45                         <tr>
46                                 <th>&nbsp;</th><th colspan="3" scope="col">First</th><th colspan="3" scope="col">Second</th><th colspan="3" scope="col">Third</th>
47                         </tr>
48                         <tr>
49                                 <th>&nbsp;</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><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th>
50                         </tr>
51                         <!-- TMPL_LOOP NAME="table" -->
52                                 <tr>
53                                         <th><!-- TMPL_VAR NAME="line" --></th>
54                                         <!-- TMPL_IF NAME="toggle" -->
55    <td class="highlight">
56 <!-- TMPL_ELSE -->
57    <td>
58 <!-- /TMPL_IF -->
59                                                 <input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
60                                         </td>
61                                         <!-- TMPL_IF NAME="toggle" -->
62    <td class="highlight">
63 <!-- TMPL_ELSE -->
64    <td>
65 <!-- /TMPL_IF -->
66                                                 <!--TMPL_IF Name="noletter" --><input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->"/>
67                                                 <!--TMPL_ELSE -->
68                                                         <select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
69                                                                 <option value="">Default</option>
70                                                                 <!-- TMPL_LOOP name="letterloop1" -->
71                                                                         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
72                                 <!-- TMPL_ELSE -->
73                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
74                                 <!-- /TMPL_IF -->
75                                                                 <!-- /TMPL_LOOP -->
76                                                         </select>
77                                                 <!--/TMPL_IF -->
78                                         </td>
79                                         <!-- TMPL_IF NAME="toggle" -->
80    <td class="highlight">
81 <!-- TMPL_ELSE -->
82    <td>
83 <!-- /TMPL_IF -->
84                                                 <!-- TMPL_IF NAME="debarred1" --><input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
85                                                 <!-- TMPL_ELSE -->
86                                                 <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
87                                                 <!-- /TMPL_IF -->
88                                         </td>
89                                         <!-- TMPL_IF NAME="toggle" -->
90    <td class="highlight">
91 <!-- TMPL_ELSE -->
92    <td>
93 <!-- /TMPL_IF -->
94                                                 <input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
95                                         </td>
96                                         <!-- TMPL_IF NAME="toggle" -->
97    <td class="highlight">
98 <!-- TMPL_ELSE -->
99    <td>
100 <!-- /TMPL_IF -->
101                                                 <!--TMPL_IF Name="noletter" --><input type="text" name="letter2-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter2"-->"/>
102                                                 <!--TMPL_ELSE -->
103                                                         <select name="letter2-<!-- TMPL_VAR NAME="overduename" -->">
104                                                                 <option value="">Default</option>
105                                                                 <!-- TMPL_LOOP name="letterloop2" -->
106                                                                         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
107                                 <!-- TMPL_ELSE -->
108                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
109                                 <!-- /TMPL_IF -->
110                                                                 <!-- /TMPL_LOOP -->
111                                                         </select>
112                                                 <!--/TMPL_IF -->
113                                         </td>
114                                         <!-- TMPL_IF NAME="toggle" -->
115    <td class="highlight">
116 <!-- TMPL_ELSE -->
117    <td>
118 <!-- /TMPL_IF -->
119 <!-- TMPL_IF NAME="debarred2" -->
120                                                 <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
121 <!-- TMPL_ELSE -->
122                                                 <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
123 <!-- /TMPL_IF -->
124                                         </td>
125                                         <!-- TMPL_IF NAME="toggle" -->
126    <td class="highlight">
127 <!-- TMPL_ELSE -->
128    <td>
129 <!-- /TMPL_IF -->
130                                                 <input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
131                                         </td>
132                                         <!-- TMPL_IF NAME="toggle" -->
133    <td class="highlight">
134 <!-- TMPL_ELSE -->
135    <td>
136 <!-- /TMPL_IF -->
137                                                 <!--TMPL_IF Name="noletter" --><input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->"/>
138                                                 <!--TMPL_ELSE -->
139                                                         <select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
140                                                                 <option value="">Default</option>
141                                                                 <!-- TMPL_LOOP name="letterloop3" -->
142                                                                         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
143                                 <!-- TMPL_ELSE -->
144                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
145                                 <!-- /TMPL_IF -->
146                                                                 <!-- /TMPL_LOOP -->
147                                                         </select>
148                                                 <!--/TMPL_IF -->
149                                         </td>
150                                         <!-- TMPL_IF NAME="toggle" -->
151    <td class="highlight">
152 <!-- TMPL_ELSE -->
153    <td>
154 <!-- /TMPL_IF --><!-- TMPL_IF NAME="debarred3" -->
155                                                 <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
156                                                 <!-- TMPL_ELSE -->
157                                                 <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" value="1" /><!-- /TMPL_IF -->
158                                         </td>
159                                 </tr>
160                         <!-- /TMPL_LOOP -->
161                         </table>
162                         
163                         <input type="submit" value="Save Changes" />
164                 </form>
165
166 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->