removed extra TMPL_ELSE
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / smart-rules.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Issuing Rules</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/admin/admin-home.pl">Administration</a> &rsaquo;  Issuing Rules</div>
22
23 <div id="doc3" class="yui-t1">
24
25 <div id="bd">
26     <div id="yui-main">
27     <div class="yui-b">
28     <h1 class="parameters">
29         <!-- TMPL_IF NAME="humanbranch" -->
30             Defining issuing rules for "<!-- TMPL_VAR NAME="humanbranch" -->"
31         <!-- TMPL_ELSE -->
32             Defining default issuing rules
33         <!-- /TMPL_IF -->
34     </h1>
35     <div class="help">
36         <p>The rules are applied from most specific to less specific, using the first found in this order:</p>
37         <ul>
38             <li>same branch, same borrower type, same item type</li>
39             <li>same branch, same borrower type, default item type</li>
40             <li>same branch, default borrower type, same item type</li>
41             <li>default branch, same borrower type, same item type</li>
42             <li>anything else</li>
43         </ul>
44         <p>To modify a rule, create a new one with the same borrower type and item type.</p>
45     </div>
46     <div id="bloc100">
47         <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
48         Select a branch :
49             <select name="branch" id="branch">
50                 <option value="">Default</option>
51             <!-- TMPL_LOOP NAME="branchloop" -->
52                 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="branchname" --></option>
53             <!-- /TMPL_LOOP -->
54             </select>
55         </form>
56         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
57             <input type="hidden" name="op" value="add" />
58             <table>
59             <tr>
60                 <th>Item Type</th><th>Borrower Type</th><th>Amount</th><th>Grace Period</th><th>Charging Interval</th><th>Amount Loanable</th><th>Loan time</th><th>&nbsp;</th>
61             </tr>
62             <!-- TMPL_LOOP NAME="rules" -->
63                 <tr>
64                     <td><!-- TMPL_VAR NAME="humanitemtype" --></td>
65                     <td><!-- TMPL_VAR NAME="humancategorycode" --></td>
66                     <td>$<!-- TMPL_VAR NAME="fine" --></td>
67                     <td><!-- TMPL_VAR NAME="firstremind" --> day(s)</td>
68                     <td><!-- TMPL_VAR NAME="chargeperiod" --> day(s)</td>
69                     <td><!-- TMPL_VAR NAME="maxissueqty" --></td>
70                     <td><!-- TMPL_VAR NAME="issuelength" --> day(s)</td>
71                     <td>
72                         <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-<!-- TMPL_VAR NAME="itemtype" -->-<!-- TMPL_VAR NAME="categorycode" -->&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Delete</a>
73                     </td>
74                 </tr>
75             <!-- /TMPL_LOOP -->
76                 <tr>
77                     <td>
78                         <select name="itemtype">
79                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
80                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
81                         <!-- /TMPL_LOOP -->
82                         </select>
83                     </td>
84                     <td>
85                         <select name="categorycode">
86                         <!-- TMPL_LOOP NAME="categoryloop" -->
87                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
88                         <!-- /TMPL_LOOP -->
89                         </select>
90                     </td>
91                     <td>$<input name="fine" size="4" /></td>
92                     <td><input name="firstremind" size="2" /> day(s)</td>
93                     <td><input name="chargeperiod" size="2" /> day(s)</td>
94                     <td><input name="maxissueqty" size="3" /></td>
95                     <td><input name="issuelength" size="3" /> day(s)</td>
96                     <td><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/><input type="submit" value="Add" class="submit" /></td>
97                 </tr>
98             </table>
99         </form>
100     </div>
101 </div>
102
103 </div>
104 <div class="yui-b">
105 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
106 </div>
107 </div>
108 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->