Bug 11768: Show patron cardnumber in OPAC personal details
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-memberentry.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% SET userupdateview = 1 %]
4
5     [% INCLUDE 'doc-head-open.inc' %]
6         [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %]
7     [% INCLUDE 'doc-head-close.inc' %]
8     [% INCLUDE 'calendar.inc' %]
9
10     <script type="text/javascript">
11         //<![CDATA[
12         $(document).ready(function() {
13             [% IF action == 'edit' && !OPACPatronDetails %]
14                 $("#memberentry-form :input").attr('readonly', true);
15                 $("#borrower_branchcode").attr('disabled',true);
16                 $("#borrower_title").attr('disabled',true);
17                 $('#memberentry-form :radio').attr('disabled',true);
18                 $('span.required').remove();
19                 $('label.required').removeClass('required');
20             [% ELSE %]
21                 $( "#borrower_dateofbirth" ).datepicker({ yearRange: "c-120:c" });
22             [% END %]
23         });
24     //]]>
25     </script>
26 </head>
27 [% IF action == 'edit' %]
28 <body id="opac-patron-update">
29 [% ELSE %]
30 <body id="opac-patron-registration">
31 [% END %]
32     <div id="doc3" class="yui-t1">
33         <div id="bd">
34             [% INCLUDE 'masthead.inc' %]
35
36             <div id="yui-main">
37                 <div class="yui-b">
38                     <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form">
39                     [% IF action == 'edit' %]
40                     <div id="update-account" class="container">
41                     [% ELSE %]
42                     <div id="add-account" class="container">
43                     [% END %]
44                         <div class="yui-g">
45                         [% IF action == 'edit' %]
46                             <h3><a href="/cgi-bin/koha/opac-user.pl">[% borrower.firstname %] [% borrower.surname %]'s account</a> &#8674; Personal details</h3>
47                         [% ELSE %]
48                             <h3>Register a new account</h3>
49                         [% END %]
50
51                             [% IF action == 'edit' %]
52                             [% UNLESS OPACPatronDetails %]
53                                 <div class="dialog message">To make changes to your record please contact the library.</div>
54                             [% END %]
55                             [% END %]
56
57                             [% IF empty_mandatory_fields %]
58                                 <div class="dialog alert">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div>
59                             [% END %]
60
61                             [% IF failed_captcha %]
62                                 <div class="dialog alert">You typed in the wrong characters in the box before submitting. Please try again.</div>
63                             [% END %]
64
65                                 [% UNLESS
66                                     hidden.defined('branchcode')
67                                 %]
68
69                                 <fieldset class="rows" id="memberentry_library">
70
71                                     <legend id="library_legend">Library</legend>
72                                         <ol>
73                                             <li>
74                                                 <label>Card number</label>
75                                                 <input type="text" value="[% borrower.cardnumber %]" disabled="disabled"/>
76                                             </li>
77
78                                             [% UNLESS hidden.defined('branchcode') %]
79                                                 <li>
80                                                     [% IF mandatory.defined('branchcode') %]
81                                                         <label for="borrower_branchcode" class="required">
82                                                     [% ELSE %]
83                                                         <label for="borrower_branchcode">
84                                                     [% END %]
85                                                     Home library:</label>
86
87                                                     <select id="borrower_branchcode" name="borrower_branchcode">
88                                                         [% FOREACH b IN branches %]
89                                                             [% IF b.value == borrower.branchcode %]
90                                                                 <option value="[% b.value %]" selected="selected">[% b.branchname %]</option>
91                                                             [% ELSE %]
92                                                                 <option value="[% b.value %]">[% b.branchname %]</option>
93                                                             [% END %]
94                                                         [% END %]
95                                                     </select>
96                                                 </li>
97                                             [% END %]
98                                         </ol>
99                                     </fieldset>
100                                 [% END %]
101                         </div>
102                                 [% UNLESS
103                                     hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') &&
104                                     hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') &&
105                                     hidden.defined('sex')
106                                 %]
107                                 <div class="yui-g">
108                                     [% IF ( display_patron_image ) %]
109                                         <div class="yui-u first">
110                                     [% END %]
111                                     <fieldset class="rows" id="memberentry_identity">
112                                         <legend id="identity_legend">Identity</legend>
113
114                                         <ol>
115                                             [% UNLESS hidden.defined('title') || !member_titles %]
116                                                 <li>
117                                                     [% IF mandatory.defined('title') %]
118                                                         <label for="borrower_title" class="required">
119                                                     [% ELSE %]
120                                                         <label for="borrower_title">
121                                                     [% END %]
122                                                     Salutation:</label>
123
124                                                     <select id="borrower_title" name="borrower_title">
125                                                         [% FOREACH mt IN member_titles %]
126                                                             [% IF mt == borrower.title %]
127                                                                 <option value="[% mt %]" selected="selected">[% mt %]</option>
128                                                             [% ELSE %]
129                                                                 <option value="[% mt %]">[% mt %]</option>
130                                                             [% END %]
131                                                         [% END %]
132                                                     </select>
133                                                 </li>
134                                             [% END %]
135
136                                             [% UNLESS hidden.defined('surname') %]
137                                                 <li>
138                                                     [% IF mandatory.defined('surname') %]
139                                                         <label for="borrower_surname" class="required">
140                                                     [% ELSE %]
141                                                         <label for="borrower_surname">
142                                                     [% END %]
143                                                     Surname:</label>
144
145                                                     <input type="text" id="borrower_surname" name="borrower_surname" value="[% borrower.surname %]" />
146                                                     [% IF mandatory.defined('surname') %]<span class="required">Required</span>[% END %]
147                                                 </li>
148                                             [% END %]
149
150                                             [% UNLESS hidden.defined('firstname') %]
151                                                 <li>
152                                                     [% IF mandatory.defined('firstname') %]
153                                                         <label for="borrower_firstname" class="required">
154                                                     [% ELSE %]
155                                                         <label for="borrower_firstname">
156                                                     [% END %]
157                                                     First name:</label>
158
159                                                     <input type="text" id="borrower_firstname" name="borrower_firstname" value="[% borrower.firstname %]" />
160                                                     [% IF mandatory.defined('firstname') %]<span class="required">Required</span>[% END %]
161                                                 </li>
162                                             [% END %]
163
164                                             [% UNLESS hidden.defined('dateofbirth') %]
165                                                 <li>
166                                                     [% IF mandatory.defined('dateofbirth') %]
167                                                         <label for="borrower_dateofbirth" class="required">
168                                                     [% ELSE %]
169                                                         <label for="borrower_dateofbirth">
170                                                     [% END %]
171                                                     Date of birth:</label>
172
173                                                     <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
174
175                                                     [% UNLESS action == 'edit' && !OPACPatronDetails %]
176                                                         <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('borrower_dateofbirth').value='';return false;">Clear date</a>
177                                                     [% END %]
178
179                                                     [% IF mandatory.defined('dateofbirth') %]<span class="required">Required</span>[% END %]
180                                                 </li>
181                                             [% END %]
182
183                                             [% UNLESS hidden.defined('initials') %]
184                                                 <li>
185                                                     [% IF mandatory.defined('initials') %]
186                                                         <label for="borrower_initials" class="required">
187                                                     [% ELSE %]
188                                                         <label for="borrower_initials">
189                                                     [% END %]
190                                                     Initials:</label>
191
192                                                     <input type="text" id="borrower_initials" name="borrower_initials" value="[% borrower.initials %]" />
193                                                     [% IF mandatory.defined('initials') %]<span class="required">Required</span>[% END %]
194                                                 </li>
195                                             [% END %]
196
197                                             [% UNLESS hidden.defined('othernames') %]
198                                                 <li>
199                                                     [% IF mandatory.defined('othernames') %]
200                                                         <label for="borrower_othernames" class="required">
201                                                     [% ELSE %]
202                                                         <label for="borrower_othernames">
203                                                     [% END %]
204                                                     Other names:</label>
205
206                                                     <input type="text" id="borrower_othernames" name="borrower_othernames" value="[% borrower.othernames %]" />
207                                                     [% IF mandatory.defined('othernames') %]<span class="required">Required</span>[% END %]
208                                                 </li>
209                                             [% END %]
210
211                                             [% UNLESS hidden.defined('sex') %]
212                                                 <li class="radio">
213                                                     <label for="sex-female">Female:</label>
214                                                     [% IF borrower.sex == 'F' %]
215                                                         <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
216                                                     [% ELSE %]
217                                                         <input type="radio" name="borrower_sex" id="sex-female" value="F" />
218                                                     [% END %]
219
220                                                     <label for="sex-male">Male:</label>
221                                                     [% IF borrower.sex == 'M' %]
222                                                         <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
223                                                     [% ELSE %]
224                                                         <input type="radio" name="borrower_sex" id="sex-male" value="M" />
225                                                     [% END %]
226
227                                                     <label for="sex-none">N/A:</label>
228                                                     [% IF borrower.sex == '' %]
229                                                         <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
230                                                     [% ELSE %]
231                                                         <input type="radio" name="borrower_sex" id="sex-none" value="" />
232                                                     [% END %]
233
234                                                     [% IF mandatory.defined('sex') %]<span class="required">Required</span>[% END %]
235                                                 </li>
236                                             [% END %]
237                                         </ol>
238                                     </fieldset>
239                                     [% IF ( display_patron_image ) %]
240                                         </div>
241                                         <div class="yui-u">
242                                             <p class="patronimage">
243                                                 <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
244                                             </p>
245                                         </div>
246                                     [% END %]
247                                 </div>
248                                 [% END %]
249
250                             <div class="yui-g">
251                                 [% UNLESS
252                                     hidden.defined('streetnumber') && hidden.defined('address') && hidden.defined('address2') &&
253                                     hidden.defined('city') && hidden.defined('state') && hidden.defined('zipcode') &&
254                                     hidden.defined('country')
255                                 %]
256                                     <fieldset class="rows" id="memberentry_mainaddress">
257                                         <legend id="mainaddress_legend">Main address</legend>
258
259                                         <ol>
260                                             [% UNLESS hidden.defined('streetnumber') %]
261                                                 <li>
262                                                     [% IF mandatory.defined('streetnumber') %]
263                                                         <label for="borrower_streetnumber" class="required">
264                                                     [% ELSE %]
265                                                         <label for="borrower_streetnumber">
266                                                     [% END %]
267                                                     Street number:</label>
268
269                                                     <input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber %]" />
270                                                     [% IF mandatory.defined('streetnumber') %]<span class="required">Required</span>[% END %]
271                                                 </li>
272                                             [% END %]
273
274                                             [% UNLESS hidden.defined('address') %]
275                                                 <li>
276                                                     [% IF mandatory.defined('address') %]
277                                                         <label for="borrower_address" class="required">
278                                                     [% ELSE %]
279                                                         <label for="borrower_address">
280                                                     [% END %]
281                                                     Address:</label>
282
283                                                     <input type="text" id="borrower_address" name="borrower_address" value="[% borrower.address %]" />
284                                                     [% IF mandatory.defined('address') %]<span class="required">Required</span>[% END %]
285                                                 </li>
286                                             [% END %]
287
288                                             [% UNLESS hidden.defined('address2') %]
289                                                 <li>
290                                                     [% IF mandatory.defined('address2') %]
291                                                         <label for="borrower_address2" class="required">
292                                                     [% ELSE %]
293                                                         <label for="borrower_address2">
294                                                     [% END %]
295                                                     Address 2:</label>
296
297                                                     <input type="text" id="borrower_address2" name="borrower_address2" value="[% borrower.address2 %]" />
298                                                     [% IF mandatory.defined('address2') %]<span class="required">Required</span>[% END %]
299                                                 </li>
300                                             [% END %]
301
302                                             [% UNLESS hidden.defined('city') %]
303                                                 <li>
304                                                     [% IF mandatory.defined('city') %]
305                                                         <label for="borrower_city" class="required">
306                                                     [% ELSE %]
307                                                         <label for="borrower_city">
308                                                     [% END %]
309                                                     City:</label>
310
311                                                     <input type="text" id="borrower_city" name="borrower_city" value="[% borrower.city %]" />
312                                                     [% IF mandatory.defined('city') %]<span class="required">Required</span>[% END %]
313                                                 </li>
314                                             [% END %]
315
316                                             [% UNLESS hidden.defined('state') %]
317                                                 <li>
318                                                     [% IF mandatory.defined('state') %]
319                                                         <label for="borrower_state" class="required">
320                                                     [% ELSE %]
321                                                         <label for="borrower_state">
322                                                     [% END %]
323                                                     State:</label>
324
325                                                     <input type="text" id="borrower_state" name="borrower_state" value="[% borrower.state %]" />
326                                                     [% IF mandatory.defined('state') %]<span class="required">Required</span>[% END %]
327                                                 </li>
328                                             [% END %]
329
330                                             [% UNLESS hidden.defined('zipcode') %]
331                                                 <li>
332                                                     [% IF mandatory.defined('zipcode') %]
333                                                         <label for="borrower_zipcode" class="required">
334                                                     [% ELSE %]
335                                                         <label for="borrower_zipcode">
336                                                     [% END %]
337                                                     Zip/Postal code:</label>
338
339                                                     <input type="text" id="borrower_zipcode" name="borrower_zipcode" value="[% borrower.zipcode %]" />
340                                                     [% IF mandatory.defined('zipcode') %]<span class="required">Required</span>[% END %]
341                                                 </li>
342                                             [% END %]
343
344                                             [% UNLESS hidden.defined('country') %]
345                                                 <li>
346                                                     [% IF mandatory.defined('country') %]
347                                                         <label for="borrower_country" class="required">
348                                                     [% ELSE %]
349                                                         <label for="borrower_country">
350                                                     [% END %]
351                                                     Country:</label>
352
353                                                     <input type="text" id="borrower_country" name="borrower_country" value="[% borrower.country %]" />
354                                                     [% IF mandatory.defined('country') %]<span class="required">Required</span>[% END %]
355                                                 </li>
356                                             [% END %]
357
358                                         </ol>
359                                     </fieldset>
360                                 [% END %]
361
362                                 [% UNLESS
363                                     hidden.defined('phone') && hidden.defined('phonepro') && hidden.defined('mobile') &&
364                                     hidden.defined('email') && hidden.defined('emailpro') && hidden.defined('fax')
365                                 %]
366                                     <fieldset class="rows" id="memberentry_contact">
367                                         <legend id="contact_legend">Contact information</legend>
368
369                                         <ol>
370                                             [% UNLESS hidden.defined('phone') %]
371                                                 <li>
372                                                     [% IF mandatory.defined('phone') %]
373                                                         <label for="borrower_phone" class="required">
374                                                     [% ELSE %]
375                                                         <label for="borrower_phone">
376                                                     [% END %]
377                                                     Primary phone:</label>
378
379                                                     <input type="text" id="borrower_phone" name="borrower_phone" value="[% borrower.phone %]" />
380                                                     [% IF mandatory.defined('phone') %]<span class="required">Required</span>[% END %]
381                                                 </li>
382                                             [% END %]
383
384                                             [% UNLESS hidden.defined('phonepro') %]
385                                                 <li>
386                                                     [% IF mandatory.defined('phonepro') %]
387                                                         <label for="borrower_phonepro" class="required">
388                                                     [% ELSE %]
389                                                         <label for="borrower_phonepro">
390                                                     [% END %]
391                                                     Secondary phone:</label>
392
393                                                     <input type="text" id="borrower_phonepro" name="borrower_phonepro" value="[% borrower.phonepro %]" />
394                                                     [% IF mandatory.defined('phonepro') %]<span class="required">Required</span>[% END %]
395                                                 </li>
396                                             [% END %]
397
398                                             [% UNLESS hidden.defined('mobile') %]
399                                                 <li>
400                                                     [% IF mandatory.defined('mobile') %]
401                                                         <label for="borrower_mobile" class="required">
402                                                     [% ELSE %]
403                                                         <label for="borrower_mobile">
404                                                     [% END %]
405                                                     Mobile phone:</label>
406
407                                                     <input type="text" id="borrower_mobile" name="borrower_mobile" value="[% borrower.mobile %]" />
408                                                     [% IF mandatory.defined('mobile') %]<span class="required">Required</span>[% END %]
409                                                 </li>
410                                             [% END %]
411
412                                             [% UNLESS hidden.defined('email') %]
413                                                 <li>
414                                                     [% IF mandatory.defined('email') %]
415                                                         <label for="borrower_email" class="required">
416                                                     [% ELSE %]
417                                                         <label for="borrower_email">
418                                                     [% END %]
419                                                     Primary email:</label>
420
421                                                     <input type="text" id="borrower_email" name="borrower_email" value="[% borrower.email %]" />
422                                                     [% IF mandatory.defined('email') %]<span class="required">Required</span>[% END %]
423                                                 </li>
424                                             [% END %]
425
426                                             [% UNLESS hidden.defined('emailpro') %]
427                                                 <li>
428                                                     [% IF mandatory.defined('emailpro') %]
429                                                         <label for="borrower_emailpro" class="required">
430                                                     [% ELSE %]
431                                                         <label for="borrower_emailpro">
432                                                     [% END %]
433                                                     Secondary email:</label>
434
435                                                     <input type="text" id="borrower_emailpro" name="borrower_emailpro" value="[% borrower.emailpro %]" />
436                                                     [% IF mandatory.defined('emailpro') %]<span class="required">Required</span>[% END %]
437                                                 </li>
438                                             [% END %]
439
440                                             [% UNLESS hidden.defined('fax') %]
441                                                 <li>
442                                                     [% IF mandatory.defined('fax') %]
443                                                         <label for="borrower_fax" class="required">
444                                                     [% ELSE %]
445                                                         <label for="borrower_fax">
446                                                     [% END %]
447                                                     Fax:</label>
448
449                                                     <input type="text" id="borrower_fax" name="borrower_fax" value="[% borrower.fax %]" />
450                                                     [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
451                                                 </li>
452                                             [% END %]
453                                         </ol>
454                                     </fieldset>
455                                 [% END %]
456
457                                 [% UNLESS
458                                     hidden.defined('B_address') && hidden.defined('B_address2') && hidden.defined('B_city') &&
459                                     hidden.defined('B_state') && hidden.defined('B_zipcode') && hidden.defined('B_county') &&
460                                     hidden.defined('B_phone') && hidden.defined('B_email') && hidden.defined('contactnote')
461                                 %]
462                                     <fieldset class="rows" id="memberentry_alternateaddress">
463                                         <legend id="alternateaddress_legend">Alternate address</legend>
464
465                                         <ol>
466                                             [% UNLESS hidden.defined('B_address') %]
467                                                 <li>
468                                                     [% IF mandatory.defined('B_address') %]
469                                                         <label for="borrower_B_address" class="required">
470                                                     [% ELSE %]
471                                                         <label for="borrower_B_address">
472                                                     [% END %]
473                                                     Address:</label>
474
475                                                     <input type="text" id="borrower_B_address" name="borrower_B_address" value="[% borrower.B_address %]" />
476                                                     [% IF mandatory.defined('B_address') %]<span class="required">Required</span>[% END %]
477                                                 </li>
478                                             [% END %]
479
480                                             [% UNLESS hidden.defined('B_address2') %]
481                                                 <li>
482                                                     [% IF mandatory.defined('B_address2') %]
483                                                         <label for="borrower_B_address2" class="required">
484                                                     [% ELSE %]
485                                                         <label for="borrower_B_address2">
486                                                     [% END %]
487                                                     Address 2:</label>
488
489                                                     <input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 %]" />
490                                                     [% IF mandatory.defined('B_address2') %]<span class="required">Required</span>[% END %]
491                                                 </li>
492                                             [% END %]
493
494                                             [% UNLESS hidden.defined('B_city') %]
495                                                 <li>
496                                                     [% IF mandatory.defined('B_city') %]
497                                                         <label for="borrower_B_city" class="required">
498                                                     [% ELSE %]
499                                                         <label for="borrower_B_city">
500                                                     [% END %]
501                                                     City:</label>
502
503                                                     <input type="text" id="borrower_B_city" name="borrower_B_city" value="[% borrower.B_city %]" />
504                                                     [% IF mandatory.defined('B_city') %]<span class="required">Required</span>[% END %]
505                                                 </li>
506                                             [% END %]
507
508                                             [% UNLESS hidden.defined('B_state') %]
509                                                 <li>
510                                                     [% IF mandatory.defined('B_state') %]
511                                                         <label for="borrower_B_state" class="required">
512                                                     [% ELSE %]
513                                                         <label for="borrower_B_state">
514                                                     [% END %]
515                                                     State:</label>
516
517                                                     <input type="text" id="borrower_B_state" name="borrower_B_state" value="[% borrower.B_state %]" />
518                                                     [% IF mandatory.defined('B_state') %]<span class="required">Required</span>[% END %]
519                                                 </li>
520                                             [% END %]
521
522                                             [% UNLESS hidden.defined('B_zipcode') %]
523                                                 <li>
524                                                     [% IF mandatory.defined('B_zipcode') %]
525                                                         <label for="borrower_B_zipcode" class="required">
526                                                     [% ELSE %]
527                                                         <label for="borrower_B_zipcode">
528                                                     [% END %]
529                                                     Zip/Postal code:</label>
530
531                                                     <input type="text" id="borrower_B_zipcode" name="borrower_B_zipcode" value="[% borrower.B_zipcode %]" />
532                                                     [% IF mandatory.defined('B_zipcode') %]<span class="required">Required</span>[% END %]
533                                                 </li>
534                                             [% END %]
535
536                                             [% UNLESS hidden.defined('B_country') %]
537                                                 <li>
538                                                     [% IF mandatory.defined('B_country') %]
539                                                         <label for="borrower_B_country" class="required">
540                                                     [% ELSE %]
541                                                         <label for="borrower_B_country">
542                                                     [% END %]
543                                                     Country:</label>
544
545                                                     <input type="text" id="borrower_B_country" name="borrower_B_country" value="[% borrower.B_country %]" />
546                                                     [% IF mandatory.defined('B_country') %]<span class="required">Required</span>[% END %]
547                                                 </li>
548                                             [% END %]
549
550                                             [% UNLESS hidden.defined('B_phone') %]
551                                                 <li>
552                                                     [% IF mandatory.defined('B_phone') %]
553                                                         <label for="borrower_B_phone" class="required">
554                                                     [% ELSE %]
555                                                         <label for="borrower_B_phone">
556                                                     [% END %]
557                                                     Phone:</label>
558
559                                                     <input type="text" id="borrower_B_phone" name="borrower_B_phone" value="[% borrower.B_phone %]" />
560                                                     [% IF mandatory.defined('B_phone') %]<span class="required">Required</span>[% END %]
561                                                 </li>
562                                             [% END %]
563
564                                             [% UNLESS hidden.defined('B_email') %]
565                                                 <li>
566                                                     [% IF mandatory.defined('B_email') %]
567                                                         <label for="borrower_B_email" class="required">
568                                                     [% ELSE %]
569                                                         <label for="borrower_B_email">
570                                                     [% END %]
571                                                     Email:</label>
572
573                                                     <input type="text" id="borrower_B_email" name="borrower_B_email" value="[% borrower.B_email %]" />
574                                                     [% IF mandatory.defined('B_email') %]<span class="required">Required</span>[% END %]
575                                                 </li>
576                                             [% END %]
577
578                                             [% UNLESS hidden.defined('contactnote') %]
579                                                 <li>
580                                                     [% IF mandatory.defined('contactnote') %]
581                                                         <label for="borrower_contactnote" class="required">
582                                                     [% ELSE %]
583                                                         <label for="borrower_contactnote">
584                                                     [% END %]
585                                                     Contact Note:</label>
586
587                                                     <textarea id="borrower_contactnote" name="borrower_contactnote" cols="40" rows="2">[% borrower.contactnote %]</textarea>
588                                                     [% IF mandatory.defined('contactnote') %]<span class="required">Required</span>[% END %]
589                                                 </li>
590                                             [% END %]
591
592                                         </ol>
593                                     </fieldset>
594                                 [% END %]
595
596                                 [% UNLESS
597                                     hidden.defined('altcontactsurname') && hidden.defined('altcontactfirstname') && hidden.defined('altcontactaddress1') &&
598                                     hidden.defined('altcontactaddress2') && hidden.defined('altcontactaddress3') && hidden.defined('altcontactstate') &&
599                                     hidden.defined('altcontactzipcode') && hidden.defined('altcontactcountry') && hidden.defined('altcontactphone')
600                                 %]
601                                     <fieldset class="rows" id="memberentry_alternatecontact">
602                                         <legend id="alternatecontact_legend">Alternate contact</legend>
603
604                                         <ol>
605                                             [% UNLESS hidden.defined('altcontactsurname') %]
606                                                 <li>
607                                                     [% IF mandatory.defined('altcontactsurname') %]
608                                                         <label for="borrower_altcontactsurname" class="required">
609                                                     [% ELSE %]
610                                                         <label for="borrower_altcontactsurname">
611                                                     [% END %]
612                                                     Surname:</label>
613
614                                                     <input type="text" id="borrower_altcontactsurname" name="borrower_altcontactsurname" value="[% borrower.altcontactsurname %]" />
615                                                     [% IF mandatory.defined('altcontactsurname') %]<span class="required">Required</span>[% END %]
616                                                 </li>
617                                             [% END %]
618
619                                             [% UNLESS hidden.defined('altcontactfirstname') %]
620                                                 <li>
621                                                     [% IF mandatory.defined('altcontactfirstname') %]
622                                                         <label for="borrower_altcontactfirstname" class="required">
623                                                     [% ELSE %]
624                                                         <label for="borrower_altcontactfirstname">
625                                                     [% END %]
626                                                     First name:</label>
627
628                                                     <input type="text" id="borrower_altcontactfirstname" name="borrower_altcontactfirstname" value="[% borrower.altcontactfirstname %]" />
629                                                     [% IF mandatory.defined('altcontactfirstname') %]<span class="required">Required</span>[% END %]
630                                                 </li>
631                                             [% END %]
632
633                                             [% UNLESS hidden.defined('altcontactaddress1') %]
634                                                 <li>
635                                                     [% IF mandatory.defined('altcontactaddress1') %]
636                                                         <label for="borrower_altcontactaddress1" class="required">
637                                                     [% ELSE %]
638                                                         <label for="borrower_altcontactaddress1">
639                                                     [% END %]
640                                                     Address:</label>
641
642                                                     <input type="text" id="borrower_altcontactaddress1" name="borrower_altcontactaddress1" value="[% borrower.altcontactaddress1 %]" />
643                                                     [% IF mandatory.defined('altcontactaddress1') %]<span class="required">Required</span>[% END %]
644                                                 </li>
645                                             [% END %]
646
647                                             [% UNLESS hidden.defined('altcontactaddress2') %]
648                                                 <li>
649                                                     [% IF mandatory.defined('altcontactaddress2') %]
650                                                         <label for="borrower_altcontactaddress2" class="required">
651                                                     [% ELSE %]
652                                                         <label for="borrower_altcontactaddress2">
653                                                     [% END %]
654                                                     Address 2:</label>
655
656                                                     <input type="text" id="borrower_altcontactaddress2" name="borrower_altcontactaddress2" value="[% borrower.altcontactaddress2 %]" />
657                                                     [% IF mandatory.defined('altcontactaddress2') %]<span class="required">Required</span>[% END %]
658                                                 </li>
659                                             [% END %]
660
661                                             [% UNLESS hidden.defined('altcontactaddress3') %]
662                                                 <li>
663                                                     [% IF mandatory.defined('altcontactaddress3') %]
664                                                         <label for="borrower_altcontactaddress3" class="required">
665                                                     [% ELSE %]
666                                                         <label for="borrower_altcontactaddress3">
667                                                     [% END %]
668                                                     City:</label>
669
670                                                     <input type="text" id="borrower_altcontactaddress3" name="borrower_altcontactaddress3" value="[% borrower.altcontactaddress3 %]" />
671                                                     [% IF mandatory.defined('altcontactaddress3') %]<span class="required">Required</span>[% END %]
672                                                 </li>
673                                             [% END %]
674
675                                             [% UNLESS hidden.defined('altcontactstate') %]
676                                                 <li>
677                                                     [% IF mandatory.defined('altcontactstate') %]
678                                                         <label for="borrower_altcontactstate" class="required">
679                                                     [% ELSE %]
680                                                         <label for="borrower_altcontactstate">
681                                                     [% END %]
682                                                     State:</label>
683
684                                                     <input type="text" id="borrower_altcontactstate" name="borrower_altcontactstate" value="[% borrower.altcontactstate %]" />
685                                                     [% IF mandatory.defined('altcontactstate') %]<span class="required">Required</span>[% END %]
686                                                 </li>
687                                             [% END %]
688
689                                             [% UNLESS hidden.defined('altcontactzipcode') %]
690                                                 <li>
691                                                     [% IF mandatory.defined('altcontactzipcode') %]
692                                                         <label for="borrower_altcontactzipcode" class="required">
693                                                     [% ELSE %]
694                                                         <label for="borrower_altcontactzipcode">
695                                                     [% END %]
696                                                     Zip/Postal code:</label>
697
698                                                     <input type="text" id="borrower_altcontactzipcode" name="borrower_altcontactzipcode" value="[% borrower.altcontactzipcode %]" />
699                                                     [% IF mandatory.defined('altcontactzipcode') %]<span class="required">Required</span>[% END %]
700                                                 </li>
701                                             [% END %]
702
703                                             [% UNLESS hidden.defined('altcontactcountry') %]
704                                                 <li>
705                                                     [% IF mandatory.defined('altcontactcountry') %]
706                                                         <label for="borrower_altcontactcountry" class="required">
707                                                     [% ELSE %]
708                                                         <label for="borrower_altcontactcountry">
709                                                     [% END %]
710                                                     Country:</label>
711
712                                                     <input type="text" id="borrower_altcontactcountry" name="borrower_altcontactcountry" value="[% borrower.altcontactcountry %]" />
713                                                     [% IF mandatory.defined('altcontactcountry') %]<span class="required">Required</span>[% END %]
714                                                 </li>
715                                             [% END %]
716
717                                             [% UNLESS hidden.defined('altcontactphone') %]
718                                                 <li>
719                                                     [% IF mandatory.defined('altcontactphone') %]
720                                                         <label for="borrower_altcontactphone" class="required">
721                                                     [% ELSE %]
722                                                         <label for="borrower_altcontactphone">
723                                                     [% END %]
724                                                     Phone:</label>
725
726                                                     <input type="text" id="borrower_altcontactphone" name="borrower_altcontactphone" value="[% borrower.altcontactphone %]" />
727                                                     [% IF mandatory.defined('altcontactphone') %]<span class="required">Required</span>[% END %]
728                                                 </li>
729                                             [% END %]
730                                         </ol>
731                                     </fieldset>
732                                 [% END %]
733
734                                 [% UNLESS action == 'edit' %]
735                                     <fieldset class="rows" id="memberentry_captcha">
736                                         <ol>
737                                             <li>
738                                                 <label for="captcha" class="required">Verification:</label>
739
740                                                 <input type="text" name="captcha" id="captcha" />
741                                                 <input type="hidden" name="captcha_digest" value="[% captcha_digest %]" />
742
743                                                 <span class="hint">Please type this following characters into the preceding box: <strong>[% captcha %]</strong></span>
744                                             </li>
745                                         </ol>
746                                     </fieldset>
747                                 [% END %]
748
749                                 [% IF action == 'edit' %]
750                                     [% IF OPACPatronDetails %]
751                                         <fieldset class="action">
752                                             <input type="hidden" name="action" value="update" />
753                                             <input type="submit" value="Submit update request" />
754                                         </fieldset>
755                                     [% END %]
756                                 [% ELSE %]
757                                     <fieldset class="action">
758                                         <input type="hidden" name="action" value="create" />
759                                         <input type="submit" value="Submit" />
760                                     </fieldset>
761                                 [% END %]
762                             </div>
763                         </div><!--/div id="update-account" -->
764                     </form>
765                 </div>
766             </div>
767
768             <div class="yui-b">
769                 <div id="leftmenus" class="container">
770                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
771                 </div>
772             </div>
773         </div>
774 [% INCLUDE 'opac-bottom.inc' %]