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