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