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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc (+111 lines)
Line 0 Link Here
1
		<fieldset class="rows" id="memberentry_address">
2
		<legend id="alt_address_lgd">Alternate address</legend><ol>
3
        [% UNLESS noB_address %]
4
			<li>
5
				[% IF ( mandatoryB_address ) %]
6
					<label for="B_address" class="required">
7
				[% ELSE %]
8
					<label for="B_address">
9
				[% END %]
10
				Address: </label>
11
                    <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
12
	  [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
13
			</li>
14
        [% END %]
15
        [% UNLESS noB_address2 %]
16
			<li>
17
				[% IF ( mandatoryB_address2 ) %]
18
					<label for="B_address2" class="required">
19
				[% ELSE %]
20
					<label for="B_address2">
21
				[% END %]
22
				Address 2: </label>
23
                    <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
24
	  [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
25
			</li>
26
        [% END %]
27
        [% UNLESS noB_city %]
28
			<li>
29
				[% IF ( mandatoryB_city ) %]
30
					<label for="B_city" class="required" >
31
				[% ELSE %]
32
					<label for="B_city">
33
				[% END %]
34
				City: </label>
35
                <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
36
	  [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
37
			</li>
38
        [% END %]
39
        [% UNLESS noB_state %]
40
			<li>
41
				[% IF ( mandatoryB_state ) %]
42
					<label for="B_state" class="required" >
43
				[% ELSE %]
44
					<label for="B_state">
45
				[% END %]
46
				State: </label>
47
                <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
48
	  [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
49
			</li>
50
        [% END %]
51
        [% UNLESS noB_zipcode %]
52
			<li>
53
				[% IF ( mandatoryB_zipcode ) %]
54
					<label for="B_zipcode" class="required">
55
				[% ELSE %]
56
					<label for="B_zipcode">
57
				[% END %]
58
				Zip/Postal code: </label>
59
                    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
60
	  [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
61
			</li>
62
        [% END %]
63
        [% UNLESS noB_country %]
64
			<li>
65
				[% IF ( mandatoryB_country ) %]
66
					<label for="B_country" class="required">
67
				[% ELSE %]
68
					<label for="B_country">
69
				[% END %]
70
				Country: </label>
71
                    <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
72
	  [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
73
			</li>
74
        [% END %]
75
        [% UNLESS noB_phone %]
76
            <li>
77
                [% IF ( mandatoryB_phone ) %]
78
                <label for="B_phone" class="required">
79
                [% ELSE %]
80
                <label for="B_phone">
81
                [% END %]
82
                Phone: </label>
83
                    <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
84
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
85
            </li>
86
        [% END %]
87
        [% UNLESS noB_email %]
88
			<li>
89
        [% IF ( mandatoryB_email ) %]
90
          <label for="B_email" class="required">
91
        [% ELSE %]
92
          <label for="B_email">
93
        [% END %]
94
        Email: </label>
95
            <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
96
		[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
97
        [% END %]
98
        [% UNLESS nocontactnote %]
99
            <li>
100
                [% IF ( mandatorycontactnote ) %]
101
                <label for="contactnote" class="required">
102
                [% ELSE %]
103
                <label for="contactnote">
104
                [% END %]
105
                Contact note: </label>
106
                <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
107
        [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
108
            </li>
109
        [% END %]
110
			</ol>
111
		</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc (+112 lines)
Line 0 Link Here
1
		<fieldset class="rows" id="memberentry_altaddress">
2
            <legend id="alt_contact_lgd">Alternate contact</legend><ol>
3
        [% UNLESS noaltcontactsurname %]
4
			<li>
5
			    [% IF ( mandatoryaltcontactsurname ) %]
6
				<label for="altcontactsurname" class="required">
7
				[% ELSE %]
8
				<label for="altcontactsurname">
9
				[% END %]
10
				Surname:</label>
11
                    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
12
				[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
13
			</li>
14
        [% END %]
15
        [% UNLESS noaltcontactfirstname %]
16
			<li>
17
			    [% IF ( mandatoryaltcontactfirstname ) %]
18
				<label for="altcontactfirstname" class="required">
19
				[% ELSE %]
20
				<label for="altcontactfirstname">
21
				[% END %]
22
				First name:</label>
23
                    <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
24
				[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
25
			</li>
26
        [% END %]
27
        [% UNLESS noaltcontactaddress1 %]
28
			<li>
29
			    [% IF ( mandatoryaltcontactaddress1 ) %]
30
				<label for="altcontactaddress1" class="required">
31
				[% ELSE %]
32
				<label for="altcontactaddress1">
33
				[% END %]
34
				Address:</label>
35
                    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
36
				[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
37
			</li>
38
        [% END %]
39
        [% UNLESS noaltcontactaddress2 %]
40
			<li>
41
			    [% IF ( mandatoryaltcontactaddress2 ) %]
42
				<label for="altcontactaddress2" class="required">
43
				[% ELSE %]
44
				<label for="altcontactaddress2">
45
				[% END %]
46
				Address 2:</label>
47
                <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
48
				[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
49
			</li>
50
        [% END %]
51
        [% UNLESS noaltcontactaddress3 %]
52
			<li>
53
			    [% IF ( mandatoryaltcontactaddress3 ) %]
54
				<label for="altcontactaddress3" class="required">
55
				[% ELSE %]
56
				<label for="altcontactaddress3">
57
				[% END %]
58
				City:</label>
59
                <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
60
				[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
61
			</li>
62
        [% END %]
63
        [% UNLESS noaltcontactstate %]
64
			<li>
65
			    [% IF ( mandatoryaltcontactstate ) %]
66
				<label for="altcontactstate" class="required">
67
				[% ELSE %]
68
				<label for="altcontactstate">
69
				[% END %]
70
				State:</label>
71
                <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
72
				[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
73
			</li>
74
        [% END %]
75
        [% UNLESS noaltcontactzipcode %]
76
			<li>
77
			    [% IF ( mandatoryaltcontactzipcode ) %]
78
				<label for="altcontactzipcode" class="required">
79
				[% ELSE %]
80
				<label for="altcontactzipcode">
81
				[% END %]
82
				Zip/Postal code:</label>
83
                    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
84
				[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
85
			</li>
86
        [% END %]
87
        [% UNLESS noaltcontactcountry %]
88
			<li>
89
			    [% IF ( mandatoryaltcontactcountry ) %]
90
				<label for="altcontactcountry" class="required">
91
				[% ELSE %]
92
				<label for="altcontactcountry">
93
				[% END %]
94
				Country:</label>
95
                    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
96
				[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
97
			</li>
98
        [% END %]
99
        [% UNLESS noaltcontactphone %]
100
			<li>
101
			    [% IF ( mandatoryaltcontactphone ) %]
102
				<label for="altcontactphone" class="required">
103
				[% ELSE %]
104
				<label for="altcontactphone">
105
				[% END %]
106
				Phone:</label>
107
                    <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
108
				[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
109
			</li>
110
        [% END %]
111
            </ol>
112
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc (+124 lines)
Line 0 Link Here
1
<fieldset class="rows" id="memberentry_mainaddress">
2
    <legend id="main_address_lgd">Main address</legend><ol>
3
        [% UNLESS nostreetnumber %]
4
    <li>
5
      [% IF ( mandatorystreetnumber ) %]
6
      <label for="streetnumber" class="required">
7
      [% ELSE %]
8
      <label for="streetnumber">
9
      [% END %]
10
      Street number: </label>
11
        <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
12
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
13
    </li>
14
        [% END %]
15
        [% UNLESS nostreettype %]
16
    [% IF roadtypes %]
17
      <li>
18
      [% IF ( mandatorystreettype ) %]
19
      <label for="streettype" class="required">
20
      [% ELSE %]
21
      <label for="streettype">
22
      [% END %]
23
      Street type: </label>
24
      <select name="streettype">
25
        <option value=""></option>
26
        [% FOR roadtype IN roadtypes %]
27
          [% IF roadtype.selected %]
28
            <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option>
29
          [% ELSE %]
30
            <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option>
31
          [% END %]
32
        [% END %]
33
      </select>
34
	  [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
35
      </li>
36
    [% END %]
37
        [% END %]
38
        [% UNLESS noaddress %]
39
    <li>
40
      [% IF ( mandatoryaddress ) %]
41
      <label for="address" class="required">
42
      [% ELSE %]
43
      <label for="address">
44
      [% END %]
45
      Address: </label>
46
            <input type="text" id="address" name="address" size="35" value="[% address %]" />
47
	  [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
48
    </li>
49
        [% END %]
50
        [% UNLESS noaddress2 %]
51
    <li>
52
      [% IF ( mandatoryaddress2 ) %]
53
      <label for="address2" class="required">
54
      [% ELSE %]
55
      <label for="address2">
56
      [% END %]
57
      Address 2: </label>
58
            <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
59
	  [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
60
    </li>
61
        [% END %]
62
        [% UNLESS nocity %]
63
    <li>
64
      [% IF ( mandatorycity ) %]
65
        <label for="city" class="required">
66
      [% ELSE %]
67
        <label for="city">
68
      [% END %]
69
      City: </label>
70
        <input type="text" id="city" name="city" size="20" value="[% city %]" />
71
        [% IF ( city_cgipopup ) %]or <strong>choose</strong>
72
        <select id="select_city" name="select_city">
73
        [% FOREACH city_loo IN city_loop %]
74
            [% IF ( city_loo.selected ) %]
75
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
76
            [% ELSE %]
77
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
78
            [% END %]
79
                [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
80
            </option>
81
        [% END %]
82
        </select>
83
        [% END %]
84
	  [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
85
    </li>
86
        [% END %]
87
        [% UNLESS nostate %]
88
    <li>
89
      [% IF ( mandatorystate ) %]
90
        <label for="state" class="required">
91
      [% ELSE %]
92
        <label for="state">
93
      [% END %]
94
      State: </label>
95
      <input type="text" name="state" id="state" size="20" value="[% state %]" />
96
	  [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
97
    </li>
98
        [% END %]
99
        [% UNLESS nozipcode %]
100
    <li>
101
      [% IF ( mandatoryzipcode ) %]
102
        <label for="zipcode" class="required">
103
      [% ELSE %]
104
        <label for="zipcode">
105
      [% END %]
106
      Zip/Postal code: </label>
107
            <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
108
	  [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
109
    </li>
110
        [% END %]
111
        [% UNLESS nocountry %]
112
    <li>
113
      [% IF ( mandatorycountry ) %]
114
        <label for="country" class="required">
115
      [% ELSE %]
116
        <label for="country">
117
      [% END %]
118
      Country: </label>
119
        <input type="text" name="country" id="country" size="20" value="[% country %]" />
120
	  [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
121
    </li>
122
        [% END %]
123
	</ol>
124
</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-348 / +3 lines)
Lines 433-562 Link Here
433
433
434
[% END %]
434
[% END %]
435
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
435
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
436
<fieldset class="rows" id="memberentry_mainaddress">
436
[% INCLUDE 'member-main-address-style-us.inc' %]
437
    <legend id="main_address_lgd">Main address</legend><ol>
438
        [% UNLESS nostreetnumber %]
439
    <li>
440
      [% IF ( mandatorystreetnumber ) %]
441
      <label for="streetnumber" class="required">
442
      [% ELSE %]
443
      <label for="streetnumber">
444
      [% END %]
445
      Street number: </label>
446
        <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
447
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
448
    </li>
449
        [% END %]
450
        [% UNLESS nostreettype %]
451
    [% IF roadtypes %]
452
      <li>
453
      [% IF ( mandatorystreettype ) %]
454
      <label for="streettype" class="required">
455
      [% ELSE %]
456
      <label for="streettype">
457
      [% END %]
458
      Street type: </label>
459
      <select name="streettype">
460
        <option value=""></option>
461
        [% FOR roadtype IN roadtypes %]
462
          [% IF roadtype.selected %]
463
            <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option>
464
          [% ELSE %]
465
            <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option>
466
          [% END %]
467
        [% END %]
468
      </select>
469
	  [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
470
      </li>
471
    [% END %] 
472
        [% END %]
473
        [% UNLESS noaddress %]
474
    <li>
475
      [% IF ( mandatoryaddress ) %]
476
      <label for="address" class="required">
477
      [% ELSE %]
478
      <label for="address">
479
      [% END %]
480
      Address: </label>
481
            <input type="text" id="address" name="address" size="35" value="[% address %]" />
482
	  [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
483
    </li>
484
        [% END %]
485
        [% UNLESS noaddress2 %]
486
    <li>
487
      [% IF ( mandatoryaddress2 ) %]
488
      <label for="address2" class="required">
489
      [% ELSE %]
490
      <label for="address2">
491
      [% END %]
492
      Address 2: </label>
493
            <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
494
	  [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
495
    </li>  
496
        [% END %]
497
        [% UNLESS nocity %]
498
    <li>
499
      [% IF ( mandatorycity ) %]
500
        <label for="city" class="required">
501
      [% ELSE %]
502
        <label for="city">
503
      [% END %]
504
      City: </label>
505
        <input type="text" id="city" name="city" size="20" value="[% city %]" />
506
        [% IF ( city_cgipopup ) %]or <strong>choose</strong>
507
        <select id="select_city" name="select_city">
508
        [% FOREACH city_loo IN city_loop %]
509
            [% IF ( city_loo.selected ) %]
510
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
511
            [% ELSE %]
512
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
513
            [% END %]
514
                [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
515
            </option>
516
        [% END %]
517
        </select>
518
        [% END %]
519
	  [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
520
    </li>
521
        [% END %]
522
        [% UNLESS nostate %]
523
    <li> 
524
      [% IF ( mandatorystate ) %]
525
        <label for="state" class="required">
526
      [% ELSE %]
527
        <label for="state">
528
      [% END %]
529
      State: </label>
530
      <input type="text" name="state" id="state" size="20" value="[% state %]" />
531
	  [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
532
    </li>
533
        [% END %]
534
        [% UNLESS nozipcode %]
535
    <li> 
536
      [% IF ( mandatoryzipcode ) %]
537
        <label for="zipcode" class="required">
538
      [% ELSE %]
539
        <label for="zipcode">
540
      [% END %]
541
      Zip/Postal code: </label>
542
            <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
543
	  [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
544
    </li>
545
        [% END %]
546
        [% UNLESS nocountry %]
547
    <li> 
548
      [% IF ( mandatorycountry ) %]
549
        <label for="country" class="required">
550
      [% ELSE %]
551
        <label for="country">
552
      [% END %]
553
      Country: </label>
554
        <input type="text" name="country" id="country" size="20" value="[% country %]" />
555
	  [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
556
    </li>    
557
        [% END %]
558
	</ol>
559
    </fieldset>
560
[% END # nostreet && nocity etc group%]
437
[% END # nostreet && nocity etc group%]
561
438
562
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
439
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
Lines 645-877 Link Here
645
[% IF ( step_6 ) %]
522
[% IF ( step_6 ) %]
646
523
647
    [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
524
    [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
648
		<fieldset class="rows" id="memberentry_address">
525
[% INCLUDE 'member-alt-address-style-us.inc' %]
649
		<legend id="alt_address_lgd">Alternate address</legend><ol>
650
        [% UNLESS noB_address %]
651
			<li>
652
				[% IF ( mandatoryB_address ) %]
653
					<label for="B_address" class="required">
654
				[% ELSE %]
655
					<label for="B_address">
656
				[% END %]
657
				Address: </label>
658
                    <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
659
	  [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
660
			</li>
661
        [% END %]
662
        [% UNLESS noB_address2 %]
663
			<li>
664
				[% IF ( mandatoryB_address2 ) %]
665
					<label for="B_address2" class="required">
666
				[% ELSE %]
667
					<label for="B_address2">
668
				[% END %]
669
				Address 2: </label>
670
                    <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
671
	  [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
672
			</li>
673
        [% END %]
674
        [% UNLESS noB_city %]
675
			<li>
676
				[% IF ( mandatoryB_city ) %]
677
					<label for="B_city" class="required" >
678
				[% ELSE %]
679
					<label for="B_city">
680
				[% END %]
681
				City: </label>
682
                <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
683
	  [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
684
			</li>
685
        [% END %]
686
        [% UNLESS noB_state %]
687
			<li>
688
				[% IF ( mandatoryB_state ) %]
689
					<label for="B_state" class="required" >
690
				[% ELSE %]
691
					<label for="B_state">
692
				[% END %]
693
				State: </label>
694
                <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
695
	  [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
696
			</li>
697
        [% END %]
698
        [% UNLESS noB_zipcode %]
699
			<li>
700
				[% IF ( mandatoryB_zipcode ) %]
701
					<label for="B_zipcode" class="required">
702
				[% ELSE %]
703
					<label for="B_zipcode">
704
				[% END %]
705
				Zip/Postal code: </label>
706
                    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
707
	  [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
708
			</li>
709
        [% END %]
710
        [% UNLESS noB_country %]
711
			<li>
712
				[% IF ( mandatoryB_country ) %]
713
					<label for="B_country" class="required">
714
				[% ELSE %]
715
					<label for="B_country">
716
				[% END %]
717
				Country: </label>
718
                    <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
719
	  [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
720
			</li>
721
        [% END %]
722
        [% UNLESS noB_phone %]
723
            <li>
724
                [% IF ( mandatoryB_phone ) %]
725
                <label for="B_phone" class="required">
726
                [% ELSE %]
727
                <label for="B_phone">
728
                [% END %]
729
                Phone: </label>
730
                    <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
731
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
732
            </li>
733
        [% END %]
734
        [% UNLESS noB_email %]
735
			<li> 
736
        [% IF ( mandatoryB_email ) %]
737
          <label for="B_email" class="required">
738
        [% ELSE %]
739
          <label for="B_email">
740
        [% END %]
741
        Email: </label>
742
            <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
743
		[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
744
        [% END %]
745
        [% UNLESS nocontactnote %]
746
            <li>
747
                [% IF ( mandatorycontactnote ) %]
748
                <label for="contactnote" class="required">
749
                [% ELSE %]
750
                <label for="contactnote">
751
                [% END %]
752
                Contact note: </label>
753
                <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
754
        [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
755
            </li>
756
        [% END %]
757
			</ol>
758
		</fieldset>
759
    [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
526
    [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
760
[% END %]
527
[% END %]
761
[% IF ( step_2 ) %]
528
[% IF ( step_2 ) %]
762
    [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
529
    [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
763
		<fieldset class="rows" id="memberentry_altaddress">       
530
[% INCLUDE 'member-alt-contact-style-us.inc' %]
764
            <legend id="alt_contact_lgd">Alternate contact</legend><ol>
765
        [% UNLESS noaltcontactsurname %]
766
			<li>
767
			    [% IF ( mandatoryaltcontactsurname ) %]
768
				<label for="altcontactsurname" class="required">
769
				[% ELSE %]
770
				<label for="altcontactsurname">
771
				[% END %]
772
				Surname:</label>
773
                    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
774
				[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
775
			</li>
776
        [% END %]
777
        [% UNLESS noaltcontactfirstname %]
778
			<li>
779
			    [% IF ( mandatoryaltcontactfirstname ) %]
780
				<label for="altcontactfirstname" class="required">
781
				[% ELSE %]
782
				<label for="altcontactfirstname">
783
				[% END %]
784
				First name:</label>
785
                    <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
786
				[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
787
			</li>
788
        [% END %]
789
        [% UNLESS noaltcontactaddress1 %]
790
			<li>
791
			    [% IF ( mandatoryaltcontactaddress1 ) %]
792
				<label for="altcontactaddress1" class="required">
793
				[% ELSE %]
794
				<label for="altcontactaddress1">
795
				[% END %]
796
				Address:</label>
797
                    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
798
				[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
799
			</li>
800
        [% END %]
801
        [% UNLESS noaltcontactaddress2 %]
802
			<li>
803
			    [% IF ( mandatoryaltcontactaddress2 ) %]
804
				<label for="altcontactaddress2" class="required">
805
				[% ELSE %]
806
				<label for="altcontactaddress2">
807
				[% END %]
808
				Address 2:</label>
809
                <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
810
				[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
811
			</li>
812
        [% END %]
813
        [% UNLESS noaltcontactaddress3 %]
814
			<li>
815
			    [% IF ( mandatoryaltcontactaddress3 ) %]
816
				<label for="altcontactaddress3" class="required">
817
				[% ELSE %]
818
				<label for="altcontactaddress3">
819
				[% END %]
820
				City:</label>
821
                <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
822
				[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
823
			</li>
824
        [% END %]
825
        [% UNLESS noaltcontactstate %]
826
			<li>
827
			    [% IF ( mandatoryaltcontactstate ) %]
828
				<label for="altcontactstate" class="required">
829
				[% ELSE %]
830
				<label for="altcontactstate">
831
				[% END %]
832
				State:</label>
833
                <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
834
				[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
835
			</li>
836
        [% END %]
837
        [% UNLESS noaltcontactzipcode %]
838
			<li>
839
			    [% IF ( mandatoryaltcontactzipcode ) %]
840
				<label for="altcontactzipcode" class="required">
841
				[% ELSE %]
842
				<label for="altcontactzipcode">
843
				[% END %]
844
				Zip/Postal code:</label>
845
                    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
846
				[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
847
			</li>
848
        [% END %]
849
        [% UNLESS noaltcontactcountry %]
850
			<li>
851
			    [% IF ( mandatoryaltcontactcountry ) %]
852
				<label for="altcontactcountry" class="required">
853
				[% ELSE %]
854
				<label for="altcontactcountry">
855
				[% END %]
856
				Country:</label>
857
                    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
858
				[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
859
			</li>			
860
        [% END %]
861
        [% UNLESS noaltcontactphone %]
862
			<li>
863
			    [% IF ( mandatoryaltcontactphone ) %]
864
				<label for="altcontactphone" class="required">
865
				[% ELSE %]
866
				<label for="altcontactphone">
867
				[% END %]
868
				Phone:</label>
869
                    <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
870
				[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
871
			</li>
872
        [% END %]
873
            </ol>
874
        </fieldset>
875
    [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
531
    [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
876
532
877
[% END %]
533
[% END %]
878
- 

Return to bug 4041