1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Item circulation alerts</title>
3 [% INCLUDE '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 = "[% branch %]";
43 $('#alerttabs').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);
88 <body id="admin_item_circulation_alerts" class="admin">
89 [% INCLUDE 'header.inc' %]
90 [% INCLUDE '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 [% FOREACH branche IN branches %]
107 [% IF ( branche.selected ) %]
108 <option value="[% branche.branchcode %]" selected="selected">[% branche.branchname %]</option>
110 <option value="[% branche.branchcode %]">[% branche.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 [% 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 [% FOREACH item_type IN item_types %]
160 <th>[% item_type.br_description %]</th>
165 [% FOREACH grid_checkou IN grid_checkout %]
167 <th>[% grid_checkou.description %]</th>
168 [% FOREACH item IN grid_checkou.items %]
169 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
179 <table class="grid active" width="100%">
183 [% FOREACH item_type IN item_types %]
184 <th>[% item_type.br_description %]</th>
189 [% FOREACH grid_checki IN grid_checkin %]
191 <th>[% grid_checki.description %]</th>
192 [% FOREACH item IN grid_checki.items %]
193 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
206 [% INCLUDE 'admin-menu.inc' %]
209 [% INCLUDE 'intranet-bottom.inc' %]