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