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