just reindenting
[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 </head>
5 <body>
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
8
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/tools-home.pl">Tools</a> &rsaquo; Notice Triggers</div>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14     <div id="yui-main">
15     <div class="yui-b">
16
17         <h1>Defining <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></h1>
18         <div class="help">
19             <p>Delay is the number of days after an issue is due before an action is triggered. </p>
20             <p>If you want Koha to trigger an action (send a letter or debar member), delay is needed.</p>
21             <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
22         </div>
23             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
24             <label for="branch">Select a branch :</label>
25                 <select id="branch" name="branch">
26                     <option value="">Default</option>
27                     <!-- TMPL_LOOP NAME="branchloop" -->
28                         <!-- TMPL_IF NAME="selected" -->
29                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
30                         <!-- TMPL_ELSE -->
31                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
32                         <!-- /TMPL_IF -->
33                     <!-- /TMPL_LOOP -->
34                 </select>
35                 <input type="submit" value="Select" />
36             </form>
37             <!--TMPL_IF Name="ERROR"-->
38             <div class="error">
39                 <h3>Data error</h3>
40                 <p>The following fields have a forbidden value. Correct them and press OK again :</p>
41                 <ul>
42                 <!-- TMPL_IF NAME="ERRORDELAY" -->
43                     <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="bor"--> borrower category has some unexpected characters. There should be only numerical characters. </li>
44                 <!-- /TMPL_IF -->
45                 <!-- TMPL_IF NAME="ERRORORDER" -->
46                     <li>Delay1 should be less than Delay2 which should be less than Delay3 for <!--TMPL_VAR Name="bor"--> borrower category </li>
47                 <!-- /TMPL_IF -->
48                 </ul>
49             </div>
50             <!--/TMPL_IF -->
51             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
52                 <input type="hidden" name="op" value="save" />
53                     
54                 <table>
55                     <caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default branch <!--/TMPL_IF-->
56                     <!--TMPL_IF Name="datasaved"-->
57                         <br /><h3 align="center">INPUT SAVED</h3>
58                     <!--/TMPL_IF -->
59                     </caption>
60                     <tr>
61                         <th>&nbsp;</th><th colspan="3" scope="col">First</th><th colspan="3" scope="col">Second</th><th colspan="3" scope="col">Third</th>
62                     </tr>
63                     <tr>
64                         <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>
65                     </tr>
66                     <!-- TMPL_LOOP NAME="table" -->
67                         <tr>
68                             <th><!-- TMPL_VAR NAME="line" --></th>
69                             <!-- TMPL_IF NAME="toggle" -->
70                                 <td class="highlight">
71                             <!-- TMPL_ELSE -->
72                                 <td>
73                             <!-- /TMPL_IF -->
74                                 <input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
75                             </td>
76                             <!-- TMPL_IF NAME="toggle" -->
77                                 <td class="highlight">
78                             <!-- TMPL_ELSE -->
79                                 <td>
80                             <!-- /TMPL_IF -->
81                             <!--TMPL_IF Name="noletter" -->
82                                 <input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->" />
83                             <!--TMPL_ELSE -->
84                                 <select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
85                                     <option value="">Default</option>
86                                     <!-- TMPL_LOOP name="letterloop1" -->
87                                         <!-- TMPL_IF NAME="selected" -->
88                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
89                                         <!-- TMPL_ELSE -->
90                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
91                                         <!-- /TMPL_IF -->
92                                     <!-- /TMPL_LOOP -->
93                                 </select>
94                             <!--/TMPL_IF -->
95                             </td>
96                             <!-- TMPL_IF NAME="toggle" -->
97                                 <td class="highlight">
98                             <!-- TMPL_ELSE -->
99                                 <td>
100                             <!-- /TMPL_IF -->
101                                 <!-- TMPL_IF NAME="debarred1" -->
102                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
103                                 <!-- TMPL_ELSE -->
104                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
105                                 <!-- /TMPL_IF -->
106                             </td>
107                             <!-- TMPL_IF NAME="toggle" -->
108                                 <td class="highlight">
109                             <!-- TMPL_ELSE -->
110                                 <td>
111                             <!-- /TMPL_IF -->
112                                 <input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
113                             </td>
114                             <!-- TMPL_IF NAME="toggle" -->
115                                 <td class="highlight">
116                             <!-- TMPL_ELSE -->
117                                 <td>
118                             <!-- /TMPL_IF -->
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="">Default</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                             <!-- TMPL_IF NAME="toggle" -->
135                                 <td class="highlight">
136                             <!-- TMPL_ELSE -->
137                                 <td>
138                             <!-- /TMPL_IF -->
139                                 <!-- TMPL_IF NAME="debarred2" -->
140                                     <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
141                                 <!-- TMPL_ELSE -->
142                                     <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
143                                 <!-- /TMPL_IF -->
144                             </td>
145                             <!-- TMPL_IF NAME="toggle" -->
146                                 <td class="highlight">
147                             <!-- TMPL_ELSE -->
148                                 <td>
149                             <!-- /TMPL_IF -->
150                                 <input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
151                             </td>
152                             <!-- TMPL_IF NAME="toggle" -->
153                                 <td class="highlight">
154                             <!-- TMPL_ELSE -->
155                                 <td>
156                             <!-- /TMPL_IF -->
157                             <!--TMPL_IF Name="noletter" -->
158                                 <input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->" />
159                             <!--TMPL_ELSE -->
160                                 <select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
161                                     <option value="">Default</option>
162                                     <!-- TMPL_LOOP name="letterloop3" -->
163                                         <!-- TMPL_IF NAME="selected" -->
164                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
165                                         <!-- TMPL_ELSE -->
166                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
167                                         <!-- /TMPL_IF -->
168                                     <!-- /TMPL_LOOP -->
169                                 </select>
170                             <!--/TMPL_IF -->
171                             </td>
172                             <!-- TMPL_IF NAME="toggle" -->
173                                 <td class="highlight">
174                             <!-- TMPL_ELSE -->
175                                 <td>
176                             <!-- /TMPL_IF -->
177                                 <!-- TMPL_IF NAME="debarred3" -->
178                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
179                                 <!-- TMPL_ELSE -->
180                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
181                                 <!-- /TMPL_IF -->
182                             </td>
183                         </tr>
184                     <!-- /TMPL_LOOP -->
185                 </table>
186                 <input type="submit" value="Save Changes" />
187             </form>
188     </div>
189     </div>
190     <div class="yui-b">
191         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
192     </div>
193 </div>
194 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->