2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › Item circulation alerts</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <style type="text/css">
7 vertical-align: bottom;
18 table.grid tbody td.info {
22 table.grid.active tbody td {
32 table.grid td.disabled {
36 table.grid td.default {
41 <script type="text/javascript">//<![CDATA[
42 var $branch = "[% branch %]";
44 $('#alerttabs').tabs();
46 var blocked = _("Blocked!");
47 var saving = _("Saving...");
48 var disabledForAll = _("Disabled for all");
49 var disabledForCurrent = _("Disabled for %s").format($branch);
51 $('#branch_selector input:submit').hide();
52 $('#branch').change(function(){
53 $('#branch_selector').submit();
56 $('table.grid.active tbody td').click(function(ev){
59 if (td.hasClass('default') && $branch != '*') {
62 function(){ td.html(disabledForAll) },
68 url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
71 data : { action: 'toggle', id: id, branch: $branch },
72 success : function(response){
73 if ($branch == '*' && response.classes.match(/default/)) {
74 td.html(disabledForAll);
75 } else if (response.classes.match(/disabled/)) {
76 td.html(disabledForCurrent);
80 td.attr('class', response.classes);
89 <body id="admin_item_circulation_alerts" class="admin">
90 [% INCLUDE 'header.inc' %]
91 [% INCLUDE 'prefs-admin-search.inc' %]
92 <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>
94 <div id="doc3" class="yui-t1">
98 <div id="yui-main" class="circulation-alert">
102 <div class="yui-u first">
103 <h1>Item circulation alerts</h1>
104 <h2>Select a library:</h2>
105 <form id="branch_selector" method="get" action="/cgi-bin/koha/admin/item_circulation_alerts.pl">
106 <select id="branch" name="branch">
107 <option value="*">Default</option>
108 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
110 <input type="submit" name="pick" value="Pick" />
115 <caption>Legend</caption>
124 <td width="100" class="default"> </td>
125 <td class="info">These are disabled for ALL libraries. To change these settings, choose the "Default" library.</td>
128 <td class="disabled"> </td>
129 <td class="info">These are disabled for the current library.</td>
133 <td class="info">These are enabled.</td>
140 <h2>Circulation alerts for [% Branches.GetName( branch ) || 'Default' %]</h2>
141 <p>Click on the grid to toggle the settings.</p>
143 <div id="alerttabs" class="toptabs">
145 <li><a href="#checkout">Checkout</a></li>
146 <li><a href="#checkin">Check-in</a></li>
151 <table class="grid active" width="100%">
155 [% FOREACH item_type IN item_types %]
156 <th>[% item_type.description %]</th>
161 [% FOREACH grid_checkou IN grid_checkout %]
163 <th>[% grid_checkou.description %]</th>
164 [% FOREACH item IN grid_checkou.items %]
165 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
175 <table class="grid active" width="100%">
179 [% FOREACH item_type IN item_types %]
180 <th>[% item_type.description %]</th>
185 [% FOREACH grid_checki IN grid_checkin %]
187 <th>[% grid_checki.description %]</th>
188 [% FOREACH item IN grid_checki.items %]
189 <td class="[% item.class %]" id="[% item.id %]">[% item.text %]</td>
202 [% INCLUDE 'admin-menu.inc' %]
205 [% INCLUDE 'intranet-bottom.inc' %]