3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration › Item circulation alerts</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style type="text/css">
8 vertical-align: bottom;
19 table.grid tbody td.info {
23 table.grid.active tbody td {
33 table.grid td.disabled {
37 table.grid td.default {
43 <body id="admin_item_circulation_alerts" class="admin">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'prefs-admin-search.inc' %]
46 <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>
48 <div id="doc3" class="yui-t1">
52 <div id="yui-main" class="circulation-alert">
56 <div class="yui-u first">
57 <h1>Item circulation alerts</h1>
58 <h2>Select a library:</h2>
59 <form id="branch_selector" method="get" action="/cgi-bin/koha/admin/item_circulation_alerts.pl">
60 <select id="branch" name="branch">
61 <option value="*">Default</option>
62 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
64 <input type="submit" name="pick" value="Pick" />
69 <caption>Legend</caption>
78 <td width="100" class="default"> </td>
79 <td class="info">These are disabled for ALL libraries. To change these settings, choose the "Default" library.</td>
82 <td class="disabled"> </td>
83 <td class="info">These are disabled for the current library.</td>
87 <td class="info">These are enabled.</td>
94 <h2>Circulation alerts for [% Branches.GetName( branch ) || 'Default' %]</h2>
95 <p>Click on the grid to toggle the settings.</p>
97 <div id="alerttabs" class="toptabs">
99 <li><a href="#checkout">Checkout</a></li>
100 <li><a href="#checkin">Check-in</a></li>
105 <table class="grid active" width="100%">
109 [% FOREACH item_type IN item_types %]
110 <th>[% item_type.description %]</th>
115 [% FOREACH grid_checkou IN grid_checkout %]
117 <th>[% grid_checkou.description %]</th>
118 [% FOREACH item IN grid_checkou.items %]
119 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
129 <table class="grid active" width="100%">
133 [% FOREACH item_type IN item_types %]
134 <th>[% item_type.description %]</th>
139 [% FOREACH grid_checki IN grid_checkin %]
141 <th>[% grid_checki.description %]</th>
142 [% FOREACH item IN grid_checki.items %]
143 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
156 [% INCLUDE 'admin-menu.inc' %]
160 [% MACRO jsinclude BLOCK %]
161 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
162 <script type="text/javascript">
163 var $branch = "[% branch %]";
165 $('#alerttabs').tabs();
167 var blocked = _("Blocked!");
168 var saving = _("Saving...");
169 var disabledForAll = _("Disabled for all");
170 var disabledForCurrent = _("Disabled for %s").format($branch);
172 $('#branch_selector input:submit').hide();
173 $('#branch').change(function(){
174 $('#branch_selector').submit();
177 $('table.grid.active tbody td').click(function(ev){
180 if (td.hasClass('default') && $branch != '*') {
183 function(){ td.html(disabledForAll) },
189 url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
192 data : { action: 'toggle', id: id, branch: $branch },
193 success : function(response){
194 if ($branch == '*' && response.classes.match(/default/)) {
195 td.html(disabledForAll);
196 } else if (response.classes.match(/disabled/)) {
197 td.html(disabledForCurrent);
201 td.attr('class', response.classes);
210 [% INCLUDE 'intranet-bottom.inc' %]