Bug 11415: Add syspref to toggle SCO receipt printing
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / branch_transfer_limits.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; Library checkin and transfer policy</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
7 <script type="text/javascript">
8 //<![CDATA[
9         $(document).ready(function(){
10         $("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes(); return false; });
11         $("#UncheckAll").click(function(){ $("#transferlimit_tabs").unCheckCheckboxes(); return false; });
12         $('#transferlimit_tabs').tabs();
13
14                  $('#branchselect').change(function() {
15                     $('#selectlibrary').submit();
16                  });
17
18                 var checkall = $(".checkall");
19                 var uncheckall = $(".uncheckall");
20
21                 $(checkall).click(function(){
22                         var tid = $(this).attr("id");
23                         tid = tid.replace("CheckAll","");
24                         $("#"+tid).checkCheckboxes();
25                         return false;
26                 });
27
28                 $(uncheckall).click(function(){
29                         var tid = $(this).attr("id");
30                         tid = tid.replace("UncheckAll","");
31                         $("#"+tid).unCheckCheckboxes();
32                         return false;
33                 });
34         $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
35             "aoColumnDefs": [
36                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
37             ],
38             "iDisplayLength": 20,
39             "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
40             "sPaginationType": "four_button"
41         }));
42         });
43 //]]>
44 </script>
45 <style type="text/css">td { text-align: center; } .sorted { min-width: 50%; }</style>
46 </head>
47 <body id="admin_branch_transfer_limits" class="admin">
48 [% INCLUDE 'header.inc' %]
49 [% INCLUDE 'cat-search.inc' %]
50
51 <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; Set library checkin and transfer policy</div>
52
53 <div id="doc3" class="yui-t1">
54
55 <div id="bd">
56      <div id="yui-main">
57     <div class="yui-b">
58
59 <h1>Library [% branchcode %] - [% branchname %] Checkin and transfer policy</h1>
60     <form method="get" action="/cgi-bin/koha/admin/branch_transfer_limits.pl" id="selectlibrary">
61         <label for="branchselect">Select a library :</label>
62             <select name="branchcode" id="branchselect">
63                 [% FOREACH branch_loo IN branch_loop %]
64                         [% IF ( branch_loo.selected ) %]
65                 <option value="[% branch_loo.value %]" selected="selected">[% branch_loo.branchname %]</option>
66             [% ELSE %]
67                 <option value="[% branch_loo.value %]">[% branch_loo.branchname %]</option>
68             [% END %]
69                 [% END %]
70             </select>
71             <input type="submit" value="Choose" />          
72     </form>
73
74 <p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
75 <fieldset>For <strong>all</strong> [% limit_phrase %]s: <a id="CheckAll" href="#">Check all</a> | <a id="UncheckAll" href="#">Uncheck all</a></fieldset>
76
77
78   <div id="transferlimit_tabs" class="toptabs">
79         <ul class="ui-tabs-nav">
80       [% FOREACH codes_loo IN codes_loop %]<li><a href="#[% codes_loo.code %]set">[% codes_loo.code %]</a></li>[% END %]
81         </ul>
82
83                 <form method="post" action="branch_transfer_limits.pl">
84
85         [% FOREACH codes_loo IN codes_loop %]
86         <div id="[% codes_loo.code %]set">
87                 <h4>Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]</h4>
88     <p><a id="CheckAll[% codes_loo.code %]table" class="checkall" href="#">Check all</a> | <a id="UncheckAll[% codes_loo.code %]table" class="uncheckall" href="#">Uncheck all</a></p>
89         
90                 <table id="[% codes_loo.code %]table" class="sorted">
91                         <thead>
92                                 <tr>
93                                     <th>Library</th>
94                                     <th>Allow transfer?</th>
95                                 </tr>
96                         </thead>
97
98                         <tbody>
99                                         [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
100                                                 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
101                                                         <td><label style="min-width:400px;" for="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row">[% to_branch_loo.toBranch %] - [% to_branch_loo.toBranchname %]</label></td>
102                                                         <td>
103                                                         [% IF ( to_branch_loo.isChecked ) %]
104                                                                 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" checked="checked" />
105                                                         [% ELSE %]
106                                                                 <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" />
107                                                         [% END %]
108                                                         </td>
109                                                 </tr>
110                                         [% END %]
111                         </tbody>
112                 </table>
113                 </div>
114                                 [% END %]
115                 
116                 <fieldset class="action">
117                     <input type="hidden" name="updateLimits" value="1" />
118                     <input type="hidden" name="branchcode" value="[% branchcode %]" />
119                     <input type="submit" value="Save" /> 
120                     <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
121                 </fieldset>
122                 </form>
123                 </div>
124   </div>
125 </div>
126 <div class="yui-b">
127   [% INCLUDE 'admin-menu.inc' %]
128 </div>
129 </div>
130 [% INCLUDE 'intranet-bottom.inc' %]