View | Details | Raw Unified | Return to bug 6458
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-47 / +226 lines)
Lines 203-211 Link Here
203
		[% END %]
203
		[% END %]
204
		Surname: </label>
204
		Surname: </label>
205
		[% IF ( uppercasesurnames ) %]
205
		[% IF ( uppercasesurnames ) %]
206
		<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
206
			[% IF ( opduplicate ) %]
207
				<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]" onclick="this.value=''" />
208
			[% ELSE %]
209
				<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
210
			[% END %]
207
		[% ELSE %]
211
		[% ELSE %]
208
		<input type="text" id="surname" name="surname" size="20"  value="[% surname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
212
			[% IF ( opduplicate ) %]
213
				<input type="text" id="surname" name="surname" size="20"  value="[% surname %]" onclick="this.value=''" />
214
			[% ELSE %]
215
				<input type="text" id="surname" name="surname" size="20"  value="[% surname %]" />
216
			[% END %]
209
		[% END %]
217
		[% END %]
210
		[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
218
		[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
211
		</li>
219
		</li>
Lines 255-261 Link Here
255
                    <label for="initials">
263
                    <label for="initials">
256
                [% END %]
264
                [% END %]
257
                Initials: </label>
265
                Initials: </label>
258
                <input type="text" id="initials" name="initials" size="20"  value="[% initials %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />	
266
                [% IF ( opduplicate ) %]
267
					<input type="text" id="initials" name="initials" size="20"  value="[% initials %]" onclick="this.value=''" />
268
                [% ELSE %]
269
					<input type="text" id="initials" name="initials" size="20"  value="[% initials %]" />
270
                [% END %]
259
                [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
271
                [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
260
            </li>
272
            </li>
261
        [% END %]
273
        [% END %]
Lines 266-272 Link Here
266
			<label for="othernames">
278
			<label for="othernames">
267
			[% END %]
279
			[% END %]
268
			Other name: </label>
280
			Other name: </label>
269
			<input type="text" id="othernames" name="othernames" size="20"  value="[% othernames %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
281
			[% IF ( opduplicate ) %]
282
				<input type="text" id="othernames" name="othernames" size="20"  value="[% othernames %]" onclick="this.value=''" />
283
			[% ELSE %]
284
				<input type="text" id="othernames" name="othernames" size="20"  value="[% othernames %]" />
285
			[% END %]
270
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
286
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
271
		[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
287
		[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
272
		</li>
288
		</li>
Lines 311-317 Link Here
311
	            <span>[% contactname %]</span>
327
	            <span>[% contactname %]</span>
312
	            <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
328
	            <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
313
	            [% ELSE %]
329
	            [% ELSE %]
314
	            <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
330
		            [% IF ( opduplicate ) %]
331
						<input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
332
		            [% ELSE %]
333
						<input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
334
		            [% END %]
315
	            [% END %]
335
	            [% END %]
316
	        </li>
336
	        </li>
317
[% ELSE %]
337
[% ELSE %]
Lines 329-335 Link Here
329
     <span>[% contactname %]</span>
349
     <span>[% contactname %]</span>
330
     <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
350
     <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
331
     [% ELSE %]
351
     [% ELSE %]
332
     <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
352
		[% IF ( opduplicate ) %]
353
			<input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
354
		[% ELSE %]
355
			<input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
356
		[% END %]
333
     [% END %]
357
     [% END %]
334
 </li>
358
 </li>
335
 <li>
359
 <li>
Lines 338-344 Link Here
338
     <span>[% contactfirstname %]</span>
362
     <span>[% contactfirstname %]</span>
339
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname %]" />
363
     <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname %]" />
340
     [% ELSE %]
364
     [% ELSE %]
341
     <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
365
	     [% IF ( opduplicate ) %]
366
				<input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" onclick="this.value=''" />
367
	     [% ELSE %]
368
				<input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" />
369
	     [% END %]
342
     [% END %]
370
     [% END %]
343
 </li>
371
 </li>
344
 [% IF ( relshiploop ) %]
372
 [% IF ( relshiploop ) %]
Lines 379-385 Link Here
379
      <label for="streetnumber">
407
      <label for="streetnumber">
380
      [% END %]
408
      [% END %]
381
      Street number: </label>
409
      Street number: </label>
382
      <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
410
      [% IF ( opduplicate ) %]
411
		<input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" onclick="this.value=''" />
412
      [% ELSE %]
413
		<input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
414
      [% END %]
383
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
415
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
384
    </li>
416
    </li>
385
    [% IF ( road_cgipopup ) %]
417
    [% IF ( road_cgipopup ) %]
Lines 401-407 Link Here
401
      <label for="address">
433
      <label for="address">
402
      [% END %]
434
      [% END %]
403
      Address: </label>
435
      Address: </label>
404
      <input type="text" id="address" name="address" size="35" value="[% address %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
436
      [% IF ( opduplicate ) %]
437
			<input type="text" id="address" name="address" size="35" value="[% address %]" onclick="this.value=''" />
438
      [% ELSE %]
439
			<input type="text" id="address" name="address" size="35" value="[% address %]" />
440
      [% END %]
405
	  [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
441
	  [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
406
    </li>
442
    </li>
407
    <li>
443
    <li>
Lines 411-417 Link Here
411
      <label for="address2">
447
      <label for="address2">
412
      [% END %]
448
      [% END %]
413
      Address 2: </label>
449
      Address 2: </label>
414
      <input type="text" id="address2" name="address2" size="35" value="[% address2 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
450
      [% IF ( opduplicate ) %]
451
			<input type="text" id="address2" name="address2" size="35" value="[% address2 %]" onclick="this.value=''" />
452
      [% ELSE %]
453
			<input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
454
      [% END %]
415
	  [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
455
	  [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
416
    </li>  
456
    </li>  
417
    <li>
457
    <li>
Lines 421-428 Link Here
421
        <label for="city">
461
        <label for="city">
422
      [% END %]
462
      [% END %]
423
      City: </label>
463
      City: </label>
424
        
464
        [% IF ( opduplicate ) %]
425
        <input type="text" id="city" name="city" size="20" value="[% city %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
465
			<input type="text" id="city" name="city" size="20" value="[% city %]" onclick="this.value=''" />
466
        [% ELSE %]
467
			<input type="text" id="city" name="city" size="20" value="[% city %]" />
468
        [% END %]
426
        [% IF ( city_cgipopup ) %]or <strong>choose</strong>
469
        [% IF ( city_cgipopup ) %]or <strong>choose</strong>
427
        <select id="select_city" name="select_city">
470
        <select id="select_city" name="select_city">
428
        [% FOREACH city_loo IN city_loop %]
471
        [% FOREACH city_loo IN city_loop %]
Lines 455-461 Link Here
455
        <label for="zipcode">
498
        <label for="zipcode">
456
      [% END %]
499
      [% END %]
457
      Zip/Postal code: </label>
500
      Zip/Postal code: </label>
458
      <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
501
      [% IF ( opduplicate ) %]
502
			<input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" onclick="this.value=''" />
503
      [% ELSE %]
504
			<input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
505
      [% END %]
459
	  [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
506
	  [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
460
    </li>
507
    </li>
461
    
508
    
Lines 466-472 Link Here
466
        <label for="country">
513
        <label for="country">
467
      [% END %]
514
      [% END %]
468
      Country: </label>
515
      Country: </label>
469
      <input type="text" name="country" id="country" size="20" value="[% country %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
516
      [% IF ( opduplicate ) %]
517
			<input type="text" name="country" id="country" size="20" value="[% country %]" onclick="this.value=''" />
518
      [% ELSE %]
519
			<input type="text" name="country" id="country" size="20" value="[% country %]" />
520
      [% END %]
470
	  [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
521
	  [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
471
    </li>    
522
    </li>    
472
  
523
  
Lines 481-487 Link Here
481
      <label for="phone">
532
      <label for="phone">
482
      [% END %]
533
      [% END %]
483
      Primary Phone: </label>
534
      Primary Phone: </label>
484
      <input type="text" id="phone" name="phone" value="[% phone %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
535
      [% IF ( opduplicate ) %]
536
			<input type="text" id="phone" name="phone" value="[% phone %]" onclick="this.value=''" />
537
      [% ELSE %]
538
			<input type="text" id="phone" name="phone" value="[% phone %]" />
539
      [% END %]
485
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
540
	  [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
486
541
487
    </li>
542
    </li>
Lines 492-498 Link Here
492
      <label for="phonepro">
547
      <label for="phonepro">
493
      [% END %]
548
      [% END %]
494
      Secondary Phone: </label>
549
      Secondary Phone: </label>
495
      <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
550
      [% IF ( opduplicate ) %]
551
			<input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" onclick="this.value=''" />
552
      [% ELSE %]
553
			<input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
554
      [% END %]
496
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
555
	  [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
497
    </li>
556
    </li>
498
    <li>
557
    <li>
Lines 502-508 Link Here
502
      <label for="mobile">
561
      <label for="mobile">
503
      [% END %]
562
      [% END %]
504
      Other Phone: </label>
563
      Other Phone: </label>
505
      <input type="text" id="mobile" name="mobile" value="[% mobile %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
564
      [% IF ( opduplicate ) %]
565
		<input type="text" id="mobile" name="mobile" value="[% mobile %]" onclick="this.value=''" />
566
      [% ELSE %]
567
		<input type="text" id="mobile" name="mobile" value="[% mobile %]" />
568
      [% END %]
506
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
569
	  [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
507
    </li>
570
    </li>
508
    <li>
571
    <li>
Lines 512-518 Link Here
512
      <label for="email">
575
      <label for="email">
513
      [% END %]
576
      [% END %]
514
      Primary Email: </label>
577
      Primary Email: </label>
515
      <input type="text" id="email" name="email" size="45" value="[% email %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />  
578
      [% IF ( opduplicate ) %]
579
		<input type="text" id="email" name="email" size="45" value="[% email %]" onclick="this.value=''" />
580
      [% ELSE %]
581
		<input type="text" id="email" name="email" size="45" value="[% email %]" />
582
      [% END %]
516
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
583
	  [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
517
584
518
    </li>
585
    </li>
Lines 523-529 Link Here
523
      <label for="emailpro">
590
      <label for="emailpro">
524
      [% END %]
591
      [% END %]
525
      Secondary Email: </label>
592
      Secondary Email: </label>
526
      <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
593
      [% IF ( opduplicate ) %]
594
		<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" onclick="this.value=''" />
595
      [% ELSE %]
596
		<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
597
      [% END %]
527
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
598
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
528
    </li>
599
    </li>
529
    <li>
600
    <li>
Lines 533-539 Link Here
533
      <label for="fax">
604
      <label for="fax">
534
      [% END %]
605
      [% END %]
535
      Fax: </label>
606
      Fax: </label>
536
      <input type="text" id="fax" name="fax" value="[% fax %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
607
      [% IF ( opduplicate ) %]
608
		<input type="text" id="fax" name="fax" value="[% fax %]" onclick="this.value=''" />
609
      [% ELSE %]
610
		<input type="text" id="fax" name="fax" value="[% fax %]" />
611
      [% END %]
537
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
612
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
538
    </li>
613
    </li>
539
	</ol>
614
	</ol>
Lines 553-559 Link Here
553
					<label for="B_address">
628
					<label for="B_address">
554
				[% END %]
629
				[% END %]
555
				Address: </label>
630
				Address: </label>
556
				<input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
631
				[% IF ( opduplicate ) %]
632
					<input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" onclick="this.value=''" />
633
				[% ELSE %]
634
					<input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
635
				[% END %]
557
	  [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
636
	  [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
558
			</li>
637
			</li>
559
			<li>
638
			<li>
Lines 563-569 Link Here
563
					<label for="B_address2">
642
					<label for="B_address2">
564
				[% END %]
643
				[% END %]
565
				Address 2: </label>
644
				Address 2: </label>
566
				<input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
645
				[% IF ( opduplicate ) %]
646
					<input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" onclick="this.value=''" />
647
				[% ELSE %]
648
					<input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
649
				[% END %]
567
	  [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
650
	  [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
568
			</li>
651
			</li>
569
			<li>
652
			<li>
Lines 593-599 Link Here
593
					<label for="B_zipcode">
676
					<label for="B_zipcode">
594
				[% END %]
677
				[% END %]
595
				Zip/Postal code: </label>
678
				Zip/Postal code: </label>
596
				<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
679
				[% IF ( opduplicate ) %]
680
					<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" onclick="this.value=''" />
681
				[% ELSE %]
682
					<input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
683
				[% END %]
597
	  [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
684
	  [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
598
			</li>
685
			</li>
599
			<li>
686
			<li>
Lines 603-609 Link Here
603
					<label for="B_country">
690
					<label for="B_country">
604
				[% END %]
691
				[% END %]
605
				Country: </label>
692
				Country: </label>
606
				<input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
693
				[% IF ( opduplicate ) %]
694
					<input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" onclick="this.value=''" />
695
				[% ELSE %]
696
					<input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
697
				[% END %]
607
	  [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
698
	  [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
608
			</li>
699
			</li>
609
            <li>
700
            <li>
Lines 612-619 Link Here
612
                [% ELSE %]
703
                [% ELSE %]
613
                <label for="B_phone">
704
                <label for="B_phone">
614
                [% END %]
705
                [% END %]
615
                Phone: </label>  
706
                Phone: </label>
616
                <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
707
                [% IF ( opduplicate ) %]
708
					<input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" onclick="this.value=''" />
709
                [% ELSE %]
710
					<input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
711
                [% END %]
617
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
712
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
618
            </li>
713
            </li>
619
			<li> 
714
			<li> 
Lines 623-629 Link Here
623
          <label for="B_email">
718
          <label for="B_email">
624
        [% END %]
719
        [% END %]
625
        Email: </label>
720
        Email: </label>
626
        <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
721
        [% IF ( opduplicate ) %]
722
			<input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" onclick="this.value=''" />
723
        [% ELSE %]
724
			<input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
725
		[% END %]
627
		[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
726
		[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
628
            <li>
727
            <li>
629
                [% IF ( mandatorycontactnote ) %]
728
                [% IF ( mandatorycontactnote ) %]
Lines 648-654 Link Here
648
				<label for="altcontactsurname">
747
				<label for="altcontactsurname">
649
				[% END %]
748
				[% END %]
650
				Surname:</label>
749
				Surname:</label>
651
				<input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
750
				[% IF ( opduplicate ) %]
751
					<input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" onclick="this.value=''" />
752
				[% ELSE %]
753
					<input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
754
				[% END %]
652
				[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
755
				[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
653
			</li>
756
			</li>
654
			<li>
757
			<li>
Lines 658-664 Link Here
658
				<label for="altcontactfirstname">
761
				<label for="altcontactfirstname">
659
				[% END %]
762
				[% END %]
660
				First name:</label>
763
				First name:</label>
661
				<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
764
				[% IF ( opduplicate ) %]
765
					<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" onclick="this.value=''" />
766
				[% ELSE %]
767
					<input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
768
				[% END %]
662
				[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
769
				[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
663
			</li>
770
			</li>
664
			<li>
771
			<li>
Lines 668-674 Link Here
668
				<label for="altcontactaddress1">
775
				<label for="altcontactaddress1">
669
				[% END %]
776
				[% END %]
670
				Address:</label>
777
				Address:</label>
671
				<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] size="40" />
778
				[% IF ( opduplicate ) %]
779
					<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" onclick="this.value=''" size="40" />
780
				[% ELSE %]
781
					<input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
782
				[% END %]
672
				[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
783
				[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
673
			</li>
784
			</li>
674
			<li>
785
			<li>
Lines 678-684 Link Here
678
				<label for="altcontactaddress2">
789
				<label for="altcontactaddress2">
679
				[% END %]
790
				[% END %]
680
				Address 2:</label>
791
				Address 2:</label>
681
				<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] size="40" />
792
				[% IF ( opduplicate ) %]
793
					<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" onclick="this.value=''" size="40" />
794
				[% ELSE %]
795
					<input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
796
				[% END %]
682
				[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
797
				[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
683
			</li>
798
			</li>
684
			<li>
799
			<li>
Lines 708-714 Link Here
708
				<label for="altcontactzipcode">
823
				<label for="altcontactzipcode">
709
				[% END %]
824
				[% END %]
710
				Zip/Postal code:</label>
825
				Zip/Postal code:</label>
711
				<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] size="5" />
826
				[% IF ( opduplicate ) %]
827
					<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" onclick="this.value=''" size="5" />
828
				[% ELSE %]
829
					<input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
830
				[% END %]
712
				[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
831
				[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
713
			</li>
832
			</li>
714
			<li>
833
			<li>
Lines 718-724 Link Here
718
				<label for="altcontactcountry">
837
				<label for="altcontactcountry">
719
				[% END %]
838
				[% END %]
720
				Country:</label>
839
				Country:</label>
721
				<input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] size="20" />
840
				[% IF ( opduplicate ) %]
841
					<input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" onclick="this.value=''" size="20" />
842
				[% ELSE %]
843
					<input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
844
				[% END %]
722
				[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
845
				[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
723
			</li>			
846
			</li>			
724
			<li>
847
			<li>
Lines 728-734 Link Here
728
				<label for="altcontactphone">
851
				<label for="altcontactphone">
729
				[% END %]
852
				[% END %]
730
				Phone:</label>
853
				Phone:</label>
731
				<input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
854
				[% IF ( opduplicate ) %]
855
					<input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" onclick="this.value=''" />
856
				[% ELSE %]
857
					<input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
858
				[% END %]
732
				[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
859
				[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
733
			</li>
860
			</li>
734
            </ol>
861
            </ol>
Lines 745-751 Link Here
745
      <label for="cardnumber">
872
      <label for="cardnumber">
746
    [% END %] 
873
    [% END %] 
747
    Card number: </label>
874
    Card number: </label>
748
    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% cardnumber %][% END %]" />
875
    [% IF ( opduplicate ) %]
876
		<input type="text" id="cardnumber" name="cardnumber" size="20" />
877
    [% ELSE %]
878
		<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
879
    [% END %]
749
	  [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
880
	  [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
750
    <li>
881
    <li>
751
      [% IF ( mandatorybranchcode ) %]
882
      [% IF ( mandatorybranchcode ) %]
Lines 806-812 Link Here
806
    [% IF ( CGIsort2 ) %] 
937
    [% IF ( CGIsort2 ) %] 
807
      [% CGIsort2 %]
938
      [% CGIsort2 %]
808
    [% ELSE %]
939
    [% ELSE %]
809
      <input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
940
      [% IF ( opduplicate ) %]
941
		<input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]" onclick="this.value=''" />
942
      [% ELSE %]
943
		<input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]" />
944
      [% END %]
810
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
945
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
811
    [% END %] 
946
    [% END %] 
812
    </li>
947
    </li>
Lines 821-827 Link Here
821
			<label for="dateenrolled">
956
			<label for="dateenrolled">
822
			[% END %]
957
			[% END %]
823
			Registration date: </label>
958
			Registration date: </label>
824
			<input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" [% IF ( metric ) %]onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');"[% END %] value="[% dateenrolled %]" />
959
			[% IF ( metric ) %]
960
				<input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" />
961
			[% ELSE %]
962
				<input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled %]" />
963
			[% END %]
825
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
964
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
826
      <script language="JavaScript" type="text/javascript">
965
      <script language="JavaScript" type="text/javascript">
827
        Calendar.setup(
966
        Calendar.setup(
Lines 843-849 Link Here
843
			<label for="dateexpiry">
982
			<label for="dateexpiry">
844
			[% END %]
983
			[% END %]
845
			Expiry date (leave blank for auto calc) </label>
984
			Expiry date (leave blank for auto calc) </label>
846
			<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" [% IF ( metric ) %]onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');"[% END %] value="[% UNLESS ( opadd ) %][% dateexpiry %][% END %]" />
985
			[% IF ( metric ) %]
986
				[% UNLESS ( opadd ) %]
987
					<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" />
988
				[% ELSE %]
989
					<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" />
990
				[% END %]
991
			[% ELSE %]
992
				[% UNLESS ( opadd ) %]
993
				<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry %]" />
994
995
				<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" value="[% UNLESS ( opadd ) %][% dateexpiry %][% END %]" />
996
				[% END %]
997
			[% END %]
847
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
998
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
848
      <script language="JavaScript" type="text/javascript">
999
      <script language="JavaScript" type="text/javascript">
849
        Calendar.setup(
1000
        Calendar.setup(
Lines 893-901 Link Here
893
			Username: </label>
1044
			Username: </label>
894
1045
895
[% IF ( NoUpdateLogin ) %]
1046
[% IF ( NoUpdateLogin ) %]
896
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% IF ( opduplicate ) %][% ELSE %][% userid %][% END %]" />
1047
	[% IF ( opduplicate ) %]
1048
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1049
	[% ELSE %]
1050
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
1051
	[% END %]
897
[% ELSE %]
1052
[% ELSE %]
898
<input type="text" id="userid" name="userid" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% userid %][% END %]" />
1053
	[% IF ( opduplicate ) %]
1054
		<input type="text" id="userid" name="userid" size="20" value="" />
1055
	[% ELSE %]
1056
		<input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1057
	[% END %]
899
[% END %]
1058
[% END %]
900
1059
901
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
1060
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
Lines 909-924 Link Here
909
			Password: </label>
1068
			Password: </label>
910
			[% IF ( opadd ) %]
1069
			[% IF ( opadd ) %]
911
			[% IF ( NoUpdateLogin ) %]
1070
			[% IF ( NoUpdateLogin ) %]
912
				<input type="text" id="password" name="password" size="20"  disabled="disabled" value="[% IF ( opduplicate ) %][% ELSE %][% password %][% END %]" />
1071
				[% IF ( opduplicate ) %]
1072
					<input type="text" id="password" name="password" size="20"  disabled="disabled" />
1073
				[% ELSE %]
1074
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="[% password %]" />
1075
				[% END %]
913
[% ELSE %]
1076
[% ELSE %]
914
				<input type="text" id="password" name="password" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% password %][% END %]" />
1077
				[% IF ( opduplicate ) %]
1078
					<input type="text" id="password" name="password" size="20" />
1079
				[% ELSE %]
1080
					<input type="text" id="password" name="password" size="20" value="[% password %]" />
1081
				[% END %]
915
[% END %]
1082
[% END %]
916
			[% ELSE %]
1083
			[% ELSE %]
917
			[% IF ( password ) %]
1084
			[% IF ( password ) %]
918
				[% IF ( NoUpdateLogin ) %]
1085
				[% IF ( NoUpdateLogin ) %]
919
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
1086
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
920
				[% ELSE %]
1087
				[% ELSE %]
921
					<input type="text" id="password" name="password" size="20" value="[% IF ( opduplicate ) %][% ELSE %]****[% END %]" />
1088
					[% IF ( opduplicate ) %]
1089
						<input type="text" id="password" name="password" size="20" />
1090
					[% ELSE %]
1091
						<input type="text" id="password" name="password" size="20" value="****" />
1092
					[% END %]
922
				[% END %]
1093
				[% END %]
923
			[% ELSE %]
1094
			[% ELSE %]
924
				[% IF ( NoUpdateLogin ) %]
1095
				[% IF ( NoUpdateLogin ) %]
Lines 995-1002 Link Here
995
                        [% END %]
1166
                        [% END %]
996
                    </select>
1167
                    </select>
997
                [% ELSE %]
1168
                [% ELSE %]
1169
                    [% IF ( opduplicate ) %]
998
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1170
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
999
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]"[% IF ( patron_attribute.opduplicate ) %] onclick="this.value=''"[% END %] />
1171
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" onclick="this.value=''" />
1172
                    [% ELSE %]
1173
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1174
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" />
1175
                    [% END %]
1000
                [% END %]
1176
                [% END %]
1001
                [% IF ( patron_attribute.password_allowed ) %]
1177
                [% IF ( patron_attribute.password_allowed ) %]
1002
                    (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
1178
                    (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
Lines 1070-1077 Link Here
1070
    [% END %]
1246
    [% END %]
1071
    [% INCLUDE 'messaging-preference-form.inc' %]
1247
    [% INCLUDE 'messaging-preference-form.inc' %]
1072
    [% IF ( SMSSendDriver ) %]
1248
    [% IF ( SMSSendDriver ) %]
1073
        <p><label for="SMSnumber">SMS number:</label> 
1249
        <p><label for="SMSnumber">SMS number:</label>
1074
          <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
1250
          [% IF ( opduplicate ) %]
1251
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" onclick="this.value=''" />
1252
          [% ELSE %]
1253
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1254
        [% END %]
1075
        </p>
1255
        </p>
1076
    [% END %]
1256
    [% END %]
1077
  </fieldset>
1257
  </fieldset>
1078
- 

Return to bug 6458