Bug 14060: Remove readonly attributes on date inputs
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE AuthorisedValues %]
4 [% USE ColumnsSettings %]
5 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
6    [% SET exports_enabled = 1 %]
7 [% END %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Patrons &rsaquo;
10 [% IF ( unknowuser ) %]
11     Patron does not exist
12 [% ELSE %]
13     Patron details for [% INCLUDE 'patron-title.inc' %]
14 [% END %]
15 </title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% INCLUDE 'calendar.inc' %]
18 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
19 [% INCLUDE 'datatables.inc' %]
20 [% INCLUDE 'columns_settings.inc' %]
21 [% INCLUDE 'strings.inc' %]
22 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
24 [% INCLUDE 'timepicker.inc' %]
25 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
26 <script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
27 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
28 <script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script>
29 <script type="text/JavaScript">
30 //<![CDATA[
31 /* Set some variable needed in circulation.js */
32 var interface = "[% interface %]";
33 var theme = "[% theme %]";
34 var borrowernumber = "[% borrowernumber %]";
35 var branchcode = "[% branch %]";
36 var exports_enabled = "[% exports_enabled %]";
37 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
38 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
39 var script = "moremember";
40 var relatives_borrowernumbers = new Array();
41 [% FOREACH b IN relatives_borrowernumbers %]
42     relatives_borrowernumbers.push("[% b %]");
43 [% END %]
44
45 var MSG_ADD_MESSAGE = _("Add a new message");
46 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
47
48 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
49
50 $(document).ready(function() {
51     $('#finesholdsissues').tabs({
52         // Correct table sizing for tables hidden in tabs
53         // http://www.datatables.net/examples/api/tabs_and_scrolling.html
54         "show": function(event, ui) {
55             var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
56             if ( oTable.length > 0 ) {
57                 oTable.fnAdjustColumnSizing();
58             }
59         },
60         "activate": function( event, ui ) {
61             $('#'+ui.newTab.context.id).click();
62         }
63     } );
64     $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
65         "sDom": 't',
66         "aoColumnDefs": [
67             { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
68         ],
69         "aoColumns": [
70             { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
71         ],
72         "bPaginate": false
73     }));
74     [% IF ( picture ) %]
75     // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
76         $('#delpicture').click(function(){
77                  return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
78         });
79         $('#manage-patron-image').find("input[value*=Upload]").click(function(){
80         if($("#uploadfile").val() == ""){
81             alert(_("Please choose a file to upload"));
82             return false;
83         }
84         return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
85         });[% END %]
86
87     $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today
88     $("#view_restrictions").on("click",function(){
89         $('#debarments-tab-link').click();
90     });
91  });
92 function uncheck_sibling(me){
93 nodename=me.getAttribute("name");
94 if (nodename =="barcodes[]"){
95     var Node=me.parentNode.previousSibling;
96     while (Node.nodeName!="TD"){Node=Node.previousSibling}
97     var Nodes=Node.childNodes;
98     for (var i=0;i < Nodes.length;i++){
99       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
100         Nodes[i].checked=false;
101       }     
102    }   
103
104 }else {
105     var Node=me.parentNode.nextSibling;
106     while (Node.nodeName!="TD"){Node=Node.nextSibling}
107     var Nodes=Node.childNodes;
108     for (var i=0;i<Nodes.length;i++){
109       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
110         Nodes[i].checked=false;
111       }     
112    }   
113 }
114 }
115 function validate1(date) {
116     var today = new Date();
117     if ( date < today ) {
118         return true;
119      } else {
120         return false;
121      }
122 };
123 //]]>
124 </script>
125
126 </head>
127 <body id="pat_moremember" class="pat">
128 [% INCLUDE 'header.inc' %]
129 [% INCLUDE 'patron-search.inc' %]
130
131 <div id="breadcrumbs">
132          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
133 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
134 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
135 </div>
136
137 <div id="doc3" class="yui-t2">
138    
139    <div id="bd">
140         <div id="yui-main">
141         <div class="yui-b">
142
143 [% UNLESS ( unknowuser ) %]
144 [% INCLUDE 'members-toolbar.inc' %]
145 [% END %]
146
147 [% IF ( error ) %]
148 <div class="dialog alert">
149     [% IF ( error == 'CANT_DELETE_STAFF' ) %]
150         <h3>Unable to delete staff user</h3>
151         <p>Insufficient privileges.</p>
152     [% END %]
153     [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
154         <h3>Not allowed to delete own account</h3>
155         <p>Deleting your own account would lock you out of Koha.</p>
156     [% END %]
157     [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
158         <h3>Unable to delete patrons from other libraries with current settings</h3>
159         <p>Insufficient privileges.</p>
160     [% END %]
161     [% IF ( error == 'CANT_DELETE' ) %]
162         <h3>Unable to delete patron</h3>
163         <p>Insufficient privileges.</p>
164     [% END %]
165 </div>
166 [% END %]
167 <div class="yui-g">
168
169 [% IF ( unknowuser ) %]
170    <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
171 [% ELSE %]
172     [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]
173
174     [% IF fines %]
175         [% INCLUDE 'blocked-fines.inc' %]
176     [% END %]
177
178     [% IF ( flagged ) %]
179     <div id="circmessages" class="circmessage attention">
180         <ul>
181         [% IF ( userdebarred ) %]
182             <li class="blocker">Patron's account is restricted
183                [% IF ( userdebarreddate ) %]
184                    until [% userdebarreddate %]
185                [% END %]
186
187                [% IF ( debarredcomment ) %]
188                    with the explanation: <i>
189                    [% IF debarredcomment.search('OVERDUES_PROCESS') %]
190                        Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
191                    [% ELSE %]
192                        [% debarredcomment | html_line_break %]
193                    [% END %]
194                     </i>
195                [% END %]
196                 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
197             </li>
198         [% END %]
199         [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
200         [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
201         </ul>
202     </div>
203     [% END %]
204
205 <h3>[% UNLESS ( I ) %]
206    [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
207  <div class="yui-u first">
208 <div id="patron-information" style="padding : .5em;">
209
210      [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
211
212     <div class = "address">
213         [% IF Koha.Preference( 'AddressFormat' ) %]
214             [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
215         [% ELSE %]
216             [% INCLUDE 'member-display-address-style-us.inc' %]
217         [% END %]
218     </div>
219                     
220         <div class="rows">
221                 <ol>
222         [% IF ( I ) %]
223             [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
224             [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
225         [% ELSE %]
226             [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
227             [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
228             [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
229         [% END %]
230
231     [% IF ( P ) %]
232         [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
233         [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
234     [% END %]           
235         [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
236     [% UNLESS ( I ) %]
237         [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email %]">[% email %]</a></li>[% END %]
238         [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
239     [% END %]
240     [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
241     [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
242     [% IF ( sex ) %]<li><span class="label">Gender:</span>
243     [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
244     </li>[% END %][% END %]
245     [% IF guarantees %]
246         <li>
247             <span class="label">Guarantees:</span>
248             <ul>
249                 [% FOREACH guarantee IN guarantees %]
250                     <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname %] [% guarantee.surname %]</a></li>
251                 [% END %]
252             </ul>
253         </li>
254     [% ELSIF guarantor %]
255         <li>
256             <span class="label">Guarantor:</span>
257             [% IF guarantor.borrowernumber %]
258                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a>
259             [% ELSE %]
260                 [% guarantor.firstname %] [% guarantor.surname %]
261             [% END %]
262         </li>
263     [% END %]
264 </ol>
265 </div>
266       <div class="action">
267         [% IF ( guarantor.borrowernumber ) %]
268         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
269         [% ELSE %]
270         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1">Edit</a>
271         [% END %]</div>
272
273 </div>
274
275 <!-- Begin Upload Patron Image Section -->
276
277 <div id="manage-patron-image">
278 [% IF ( patronimages ) %]
279     [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
280         <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
281             <fieldset class="brief">
282             [% IF ( picture ) %]
283                 <legend>Manage patron image</legend>
284                 <div class="hint">To update the image for [% title %] [% surname %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
285             [% ELSE %]
286                 <legend>Upload patron image</legend>
287                 <div class="hint">[% title %] [% firstname %] [% surname %] does not currently have an image available. To import an image for [% title %] [% surname %], enter the name of an image file to upload.
288             [% END %]
289                     <br />Only PNG, GIF, JPEG, XPM formats are supported.
290                 </div>
291                 <input type="hidden" id="image" name="filetype" value="image" />
292                 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber %]" />
293                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
294                 <ol>
295                     <li>
296                        <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
297                     </li>
298                 </ol>
299                 <fieldset class="action">
300                     <input type="submit" value="Upload" class="submit" />
301                     <input name="op" type="hidden" value="Upload" />
302                     [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
303                 </fieldset>
304             </fieldset>
305         </form>
306     [% END %]
307 [% END %]
308 </div>
309
310 <!-- End Upload Patron Image Section -->
311
312 [% IF ( ExtendedPatronAttributes ) %]
313 [% UNLESS ( no_patron_attribute_types ) %]
314 <div id="patron-extended-attributes" style="padding-top: 1em;">
315 <h3>Additional attributes and identifiers</h3>
316 [% FOREACH attribute IN attributes_loop %]
317     [% IF attribute.class %]
318         <div id="aai_[% attribute.class %]" class="rows">
319     [% ELSE %]
320         <div id="aai" class="rows">
321     [% END %]
322         <h4>[% attribute.lib %]</h4>
323         <ol>
324         [% FOREACH item IN attribute.items %]
325             <li>
326                 <span class="label">[% item.description %]: </span>
327                 [% IF ( item.value_description ) %]
328                     [% item.value_description %]
329                 [% ELSE %]
330                     [% item.value| html_line_break %]
331                 [% END %]
332             </li>
333         [% END %]
334         </ol>
335     </div>
336 [% END %]
337 </div>
338 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
339 [% END %]
340 [% END %]
341
342 [% IF ( EnhancedMessagingPreferences ) %]
343 <div id="patron-messaging-prefs" style="padding-top: 1em;">
344 <h3>Patron messaging preferences</h3>
345 [% INCLUDE 'messaging-preference-form.inc' %]
346  [% IF ( SMSSendDriver ) %]
347       <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
348      </li></ol></div>
349  [% END %]
350 </div>
351 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
352 [% END %]
353
354 </div>
355  <div class="yui-u"> 
356  <div id="patron-library-details">
357  <h3>Library use</h3>
358 <div class="rows"> 
359 <ol>
360     <li><span class="label">Card number: </span>[% cardnumber %]</li>
361         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
362     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
363     <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
364     
365     <li><span class="label">Expiration date: </span>
366     [% IF ( was_renewed ) %]
367             <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
368     [% ELSE %]
369             [% dateexpiry | $KohaDates %]
370     [% END %]
371     </li>
372     
373     <li><span class="label">Library: </span>[% branchname %]</li>
374
375     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
376          [% IF ( privacy0 ) %]Forever[% END %]
377          [% IF ( privacy1 ) %]Default[% END %]
378          [% IF ( privacy2 ) %]Never[% END %]
379     </li>[% END %]
380
381     <li>
382         <span class="label">Show checkouts to guarantor</span>
383         [% IF privacy_guarantor_checkouts %]
384             Yes
385         [% ELSE %]
386             No
387         [% END %]
388     </li>
389
390     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
391     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
392     <li><span class="label">Username: </span>[% userid %]</li>
393     <li><span class="label">Password: </span>
394     [% IF ( password ) %]
395         *******
396     [% ELSE %]
397         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
398     [% END %] 
399     </li>
400     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
401     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
402     [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
403         [% IF ( sync == 1 ) %]
404             <li><span class="label">Activate sync: </span>Yes</li>
405             [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
406             [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
407         [% ELSE %]
408             <li><span class="label">Activate sync: </span>No</li>
409         [% END %]
410     [% END %]
411         </ol>
412         </div>
413  </div>
414     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
415  
416     [% UNLESS ( I ) %]
417  <div id="patron-alternate-address" style="padding-top: 1em;">
418     <h3>Alternate address</h3>
419
420     [% IF Koha.Preference( 'AddressFormat' ) %]
421         [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
422     [% ELSE %]
423         [% INCLUDE 'member-display-alt-address-style-us.inc' %]
424     [% END %]
425
426     <div class="rows">  <ol>
427       [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
428       [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
429       [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
430       </ol>
431     </div>
432 </div>
433 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
434     [% END %]
435
436  <div id="patron-alternative-contact" style="padding-top: 1em;">
437  <h3>Alternative contact</h3>
438    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
439     <li><span class="label">First name: </span>[% altcontactfirstname %]</li>    
440     <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
441     <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
442         <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
443     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
444     <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode %]</li>
445         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
446     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone %]">[% altcontactphone %]</a></li>[% END %]
447     </ol></div>
448 </div>
449 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
450
451 </div>
452 </div>
453
454 <div id="finesholdsissues" class="toptabs">
455     <ul>
456         <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
457         [% IF relatives_issues_count %]
458             <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
459         [% END %]
460         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
461         <li>
462             [% IF ( holds_count ) %]
463                 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
464             [% ELSE %]
465                 <a href="#reserves" id="holds-tab">0 Holds</a>
466             [% END %]
467         </li>
468         <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
469     </ul>
470
471 [% INCLUDE "checkouts-table.inc" %]
472
473 [% IF ( relatives_issues_count ) %]
474     <div id="relatives-issues">
475         <table id="relatives-issues-table" style="width: 100% !Important;">
476             <thead>
477                 <tr>
478                     <th scope="col">Due date hidden not formatted</th>
479                     <th scope="col">Due date</th>
480                     <th scope="col">Title</th>
481                     <th scope="col">Item type</th>
482                     <th scope="col">Location</th>
483                     <th scope="col">Checked out on</th>
484                     <th scope="col">Checked out from</th>
485                     <th scope="col">Call no</th>
486                     <th scope="col">Charge</th>
487                     <th scope="col">Fine</th>
488                     <th scope="col">Price</th>
489                     <th scope="col">Patron</th>
490                 </tr>
491             </thead>
492         </table>
493     </div>
494 [% END %]
495
496 <div id="finesandcharges">
497     [% IF ( totaldue_raw ) %]
498         <p>Total due: [% totaldue %]</p>
499     [% ELSE %]
500         <p>No outstanding charges</p>
501     [% END %]
502 </div>
503
504 [% INCLUDE borrower_debarments.inc %]
505
506 <div id="reserves">
507 [% IF ( holds_count ) %]
508     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
509         <input type="hidden" name="from" value="circ" />
510         <table id="holds-table" style="width: 100% !Important;">
511             <thead>
512                 <tr>
513                     <th>Hold date</th>
514                     <th>Title</th>
515                     <th>Call number</th>
516                     <th>Barcode</th>
517                     <th>Pickup at</th>
518                     <th>Expiration</th>
519                     <th>Priority</th>
520                     <th>Delete?</th>
521                     <th>Suspend?</th>
522                 </tr>
523             </thead>
524         </table>
525
526         <fieldset class="action">
527             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
528         </fieldset>
529     </form>
530
531     [% IF SuspendHoldsIntranet %]
532     <fieldset class="action">
533         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
534             <input type="hidden" name="from" value="borrower" />
535             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
536             <input type="submit" value="Suspend all holds" />
537
538             [% IF AutoResumeSuspendedHolds %]
539             <label for="suspend_until">until</label>
540             <input type="text" size="10" id="suspend_until" name="suspend_until"/>
541             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
542             [% END %]
543         </form>
544     </fieldset>
545
546     <fieldset class="action">
547         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
548             <input type="hidden" name="from" value="borrower" />
549             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
550             <input type="hidden" name="suspend" value="0" />
551             <input type="submit" value="Resume all suspended holds" />
552         </form>
553     </fieldset>
554     [% END # IF SuspendHoldsIntranet %]
555
556     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
557         </div>
558
559 </div>
560 [% END %] <!-- unknowuser -->
561
562
563 </div>
564 </div>
565 <div class="yui-b">
566 [% INCLUDE 'circ-menu.inc' %]
567 </div>
568 </div>
569 [% INCLUDE 'intranet-bottom.inc' %]