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 765-771 Link Here
765
      <label for="cardnumber">
892
      <label for="cardnumber">
766
    [% END %] 
893
    [% END %] 
767
    Card number: </label>
894
    Card number: </label>
768
    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% cardnumber %][% END %]" />
895
    [% IF ( opduplicate ) %]
896
		<input type="text" id="cardnumber" name="cardnumber" size="20" />
897
    [% ELSE %]
898
		<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
899
    [% END %]
769
	  [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
900
	  [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
770
    <li>
901
    <li>
771
      [% IF ( mandatorybranchcode ) %]
902
      [% IF ( mandatorybranchcode ) %]
Lines 826-832 Link Here
826
    [% IF ( CGIsort2 ) %] 
957
    [% IF ( CGIsort2 ) %] 
827
      [% CGIsort2 %]
958
      [% CGIsort2 %]
828
    [% ELSE %]
959
    [% ELSE %]
829
      <input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
960
      [% IF ( opduplicate ) %]
961
		<input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]" onclick="this.value=''" />
962
      [% ELSE %]
963
		<input  type="text" id="sort2" name="sort2" size="20"  value="[% sort2 %]" />
964
      [% END %]
830
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
965
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
831
    [% END %] 
966
    [% END %] 
832
    </li>
967
    </li>
Lines 841-847 Link Here
841
			<label for="dateenrolled">
976
			<label for="dateenrolled">
842
			[% END %]
977
			[% END %]
843
			Registration date: </label>
978
			Registration date: </label>
844
			<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 %]" />
979
			[% IF ( metric ) %]
980
				<input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" />
981
			[% ELSE %]
982
				<input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled %]" />
983
			[% END %]
845
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
984
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
846
      <script language="JavaScript" type="text/javascript">
985
      <script language="JavaScript" type="text/javascript">
847
        Calendar.setup(
986
        Calendar.setup(
Lines 863-869 Link Here
863
			<label for="dateexpiry">
1002
			<label for="dateexpiry">
864
			[% END %]
1003
			[% END %]
865
			Expiry date (leave blank for auto calc) </label>
1004
			Expiry date (leave blank for auto calc) </label>
866
			<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 %]" />
1005
			[% IF ( metric ) %]
1006
				[% UNLESS ( opadd ) %]
1007
					<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" />
1008
				[% ELSE %]
1009
					<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" />
1010
				[% END %]
1011
			[% ELSE %]
1012
				[% UNLESS ( opadd ) %]
1013
				<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry %]" />
1014
1015
				<input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" value="[% UNLESS ( opadd ) %][% dateexpiry %][% END %]" />
1016
				[% END %]
1017
			[% END %]
867
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
1018
            <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
868
      <script language="JavaScript" type="text/javascript">
1019
      <script language="JavaScript" type="text/javascript">
869
        Calendar.setup(
1020
        Calendar.setup(
Lines 913-921 Link Here
913
			Username: </label>
1064
			Username: </label>
914
1065
915
[% IF ( NoUpdateLogin ) %]
1066
[% IF ( NoUpdateLogin ) %]
916
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% IF ( opduplicate ) %][% ELSE %][% userid %][% END %]" />
1067
	[% IF ( opduplicate ) %]
1068
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1069
	[% ELSE %]
1070
		<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
1071
	[% END %]
917
[% ELSE %]
1072
[% ELSE %]
918
<input type="text" id="userid" name="userid" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% userid %][% END %]" />
1073
	[% IF ( opduplicate ) %]
1074
		<input type="text" id="userid" name="userid" size="20" value="" />
1075
	[% ELSE %]
1076
		<input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1077
	[% END %]
919
[% END %]
1078
[% END %]
920
1079
921
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
1080
	  [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
Lines 929-944 Link Here
929
			Password: </label>
1088
			Password: </label>
930
			[% IF ( opadd ) %]
1089
			[% IF ( opadd ) %]
931
			[% IF ( NoUpdateLogin ) %]
1090
			[% IF ( NoUpdateLogin ) %]
932
				<input type="text" id="password" name="password" size="20"  disabled="disabled" value="[% IF ( opduplicate ) %][% ELSE %][% password %][% END %]" />
1091
				[% IF ( opduplicate ) %]
1092
					<input type="text" id="password" name="password" size="20"  disabled="disabled" />
1093
				[% ELSE %]
1094
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="[% password %]" />
1095
				[% END %]
933
[% ELSE %]
1096
[% ELSE %]
934
				<input type="text" id="password" name="password" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% password %][% END %]" />
1097
				[% IF ( opduplicate ) %]
1098
					<input type="text" id="password" name="password" size="20" />
1099
				[% ELSE %]
1100
					<input type="text" id="password" name="password" size="20" value="[% password %]" />
1101
				[% END %]
935
[% END %]
1102
[% END %]
936
			[% ELSE %]
1103
			[% ELSE %]
937
			[% IF ( password ) %]
1104
			[% IF ( password ) %]
938
				[% IF ( NoUpdateLogin ) %]
1105
				[% IF ( NoUpdateLogin ) %]
939
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
1106
					<input type="text" id="password" name="password" size="20"  disabled="disabled" value="****" />
940
				[% ELSE %]
1107
				[% ELSE %]
941
					<input type="text" id="password" name="password" size="20" value="[% IF ( opduplicate ) %][% ELSE %]****[% END %]" />
1108
					[% IF ( opduplicate ) %]
1109
						<input type="text" id="password" name="password" size="20" />
1110
					[% ELSE %]
1111
						<input type="text" id="password" name="password" size="20" value="****" />
1112
					[% END %]
942
				[% END %]
1113
				[% END %]
943
			[% ELSE %]
1114
			[% ELSE %]
944
				[% IF ( NoUpdateLogin ) %]
1115
				[% IF ( NoUpdateLogin ) %]
Lines 1015-1022 Link Here
1015
                        [% END %]
1186
                        [% END %]
1016
                    </select>
1187
                    </select>
1017
                [% ELSE %]
1188
                [% ELSE %]
1189
                    [% IF ( opduplicate ) %]
1018
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1190
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1019
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]"[% IF ( patron_attribute.opduplicate ) %] onclick="this.value=''"[% END %] />
1191
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" onclick="this.value=''" />
1192
                    [% ELSE %]
1193
                    <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1194
                           id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" />
1195
                    [% END %]
1020
                [% END %]
1196
                [% END %]
1021
                [% IF ( patron_attribute.password_allowed ) %]
1197
                [% IF ( patron_attribute.password_allowed ) %]
1022
                    (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
1198
                    (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
Lines 1090-1097 Link Here
1090
    [% END %]
1266
    [% END %]
1091
    [% INCLUDE 'messaging-preference-form.inc' %]
1267
    [% INCLUDE 'messaging-preference-form.inc' %]
1092
    [% IF ( SMSSendDriver ) %]
1268
    [% IF ( SMSSendDriver ) %]
1093
        <p><label for="SMSnumber">SMS number:</label> 
1269
        <p><label for="SMSnumber">SMS number:</label>
1094
          <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]"[% IF ( opduplicate ) %] onclick="this.value=''"[% END %] />
1270
          [% IF ( opduplicate ) %]
1271
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" onclick="this.value=''" />
1272
          [% ELSE %]
1273
            <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1274
        [% END %]
1095
        </p>
1275
        </p>
1096
    [% END %]
1276
    [% END %]
1097
  </fieldset>
1277
  </fieldset>
1098
- 

Return to bug 6458