1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Item Circulation Alerts</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <style type="text/css">
6 vertical-align: bottom;
17 table.grid tbody td.info {
21 table.grid.active tbody td {
31 table.grid td.disabled {
35 table.grid td.default {
40 <script type="text/javascript">//<![CDATA[
41 var $branch = "<!-- TMPL_VAR NAME="branch" -->";
43 $('#alerttabs > ul').tabs();
45 var blocked = _('Blocked!');
46 var saving = _('Saving...');
47 var disabledForAll = _('Disabled for all');
48 var disabledForCurrent = _('Disabled for') + ' ' + $branch;
50 $('#branch_selector input:submit').hide();
51 $('#branch').change(function(){
52 $('#branch_selector').submit();
55 $('table.grid.active tbody td').click(function(ev){
58 if (td.hasClass('default') && $branch != '*') {
61 function(){ td.html(disabledForAll) },
67 url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
70 data : { action: 'toggle', id: id, branch: $branch },
71 success : function(response){
72 if ($branch == '*' && response.classes.match(/default/)) {
73 td.html(disabledForAll);
74 } else if (response.classes.match(/disabled/)) {
75 td.html(disabledForCurrent);
79 td.attr('class', response.classes);
89 <!-- TMPL_INCLUDE NAME="header.inc" -->
90 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
91 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Item Circulation Alerts </div>
93 <div id="doc3" class="yui-t1">
97 <div id="yui-main" class="circulation-alert">
101 <div class="yui-u first">
102 <h1>Item Circulation Alerts</h1>
103 <h2>Select a library:</h2>
104 <form id="branch_selector" method="get" action="/cgi-bin/koha/admin/item_circulation_alerts.pl">
105 <select id="branch" name="branch">
106 <!-- TMPL_LOOP NAME="branches" -->
107 <!-- TMPL_IF NAME="selected" -->
108 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
110 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
114 <input type="submit" name="pick" value="Pick" />
119 <caption>Legend</caption>
128 <td width="100" class="default"> </td>
129 <td class="info">These are disabled for ALL libraries. To change these settings, choose the "Default" library.</td>
132 <td class="disabled"> </td>
133 <td class="info">These are disabled for the current library.</td>
137 <td class="info">These are enabled.</td>
144 <h2>Circulation Alerts for <!-- TMPL_VAR NAME="branch_name" --></h2>
145 <p>Click on the grid to toggle the settings.</p>
147 <div id="alerttabs" class="toptabs">
149 <li><a href="#checkout">Checkout</a></li>
150 <li><a href="#checkin">Check-in</a></li>
155 <table class="grid active" width="100%">
159 <!-- TMPL_LOOP NAME="item_types" -->
160 <th><!-- TMPL_VAR NAME="br_description" --></th>
165 <!-- TMPL_LOOP NAME="grid_checkout" -->
167 <th><!-- TMPL_VAR NAME="description" --></th>
168 <!-- TMPL_LOOP NAME="items" -->
169 <td class="<!-- TMPL_VAR NAME="class" -->" id="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="text" --></td>
179 <table class="grid active" width="100%">
183 <!-- TMPL_LOOP NAME="item_types" -->
184 <th><!-- TMPL_VAR NAME="br_description" --></th>
189 <!-- TMPL_LOOP NAME="grid_checkin" -->
191 <th><!-- TMPL_VAR NAME="description" --></th>
192 <!-- TMPL_LOOP NAME="items" -->
193 <td class="<!-- TMPL_VAR NAME="class" -->" id="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="text" --></td>
206 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
209 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->