Markup corrections. You can't embed a <!-- TMPL_IF --> inside an HTML tag because...
[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/tools/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), a delay value is required.</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 library:</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="dialog alert">
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             <!-- TMPL_IF name="table" -->
52             <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
53                 <input type="hidden" name="op" value="save" />
54                 <table>
55                     <caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF-->
56                     <!--TMPL_IF Name="datasaved"-->
57                         <br /><h3 align="center">INPUT SAVED</h3>
58                     <!--/TMPL_IF -->
59                     </caption>
60                     <tr>
61                         <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>
62                     </tr>
63                     <tr>
64                         <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                      <!-- TMPL_IF NAME="toggle" -->
68                                 <tr class="highlight">
69                             <!-- TMPL_ELSE -->
70                                 <tr>
71                             <!-- /TMPL_IF -->
72                             <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
73 <td>
74                                 <input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
75                             </td>
76 <td>
77                             <!--TMPL_IF Name="noletter" -->
78                                 <input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->" />
79                             <!--TMPL_ELSE -->
80                                 <select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
81                                     <option value="">Default</option>
82                                     <!-- TMPL_LOOP name="letterloop1" -->
83                                         <!-- TMPL_IF NAME="selected" -->
84                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
85                                         <!-- TMPL_ELSE -->
86                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
87                                         <!-- /TMPL_IF -->
88                                     <!-- /TMPL_LOOP -->
89                                 </select>
90                             <!--/TMPL_IF -->
91                             </td>
92 <td>
93                                 <!-- TMPL_IF NAME="debarred1" -->
94                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
95                                 <!-- TMPL_ELSE -->
96                                     <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
97                                 <!-- /TMPL_IF -->
98                             </td>
99 <td>
100                                 <input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
101                             </td>
102 <td>
103                             <!--TMPL_IF Name="noletter" -->
104                                 <input type="text" name="letter2-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter2"-->" />
105                             <!--TMPL_ELSE -->
106                                 <select name="letter2-<!-- TMPL_VAR NAME="overduename" -->">
107                                     <option value="">Default</option>
108                                         <!-- TMPL_LOOP name="letterloop2" -->
109                                             <!-- TMPL_IF NAME="selected" -->
110                                                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
111                                             <!-- TMPL_ELSE -->
112                                                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
113                                             <!-- /TMPL_IF -->
114                                         <!-- /TMPL_LOOP -->
115                                 </select>
116                             <!--/TMPL_IF -->
117                             </td>
118 <td>
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 <td>
126                                 <input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
127                             </td>
128 <td>
129                             <!--TMPL_IF Name="noletter" -->
130                                 <input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->" />
131                             <!--TMPL_ELSE -->
132                                 <select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
133                                     <option value="">Default</option>
134                                     <!-- TMPL_LOOP name="letterloop3" -->
135                                         <!-- TMPL_IF NAME="selected" -->
136                                             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
137                                         <!-- TMPL_ELSE -->
138                                             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
139                                         <!-- /TMPL_IF -->
140                                     <!-- /TMPL_LOOP -->
141                                 </select>
142                             <!--/TMPL_IF -->
143                             </td>
144 <td>
145                                 <!-- TMPL_IF NAME="debarred3" -->
146                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
147                                 <!-- TMPL_ELSE -->
148                                     <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
149                                 <!-- /TMPL_IF -->
150                             </td>
151                         </tr>
152                     <!-- /TMPL_LOOP -->
153                 </table>
154                 <fieldset class="action"><input type="submit" value="Save Changes" /></fieldset>
155             </form>
156             <!-- TMPL_ELSE -->
157                 <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
158                 <div class="warning">If this is not what you were expecting, go to <a href="../admin/categorie.pl">patron categories</p></div>
159             <!-- /TMPL_IF -->
160     </div>
161     </div>
162     <div class="yui-b noprint">
163         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
164     </div>
165 </div>
166 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->