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 470-599 Link Here
470
470
471
[% END %]
471
[% END %]
472
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
472
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
473
<fieldset class="rows" id="memberentry_mainaddress">
473
[% INCLUDE 'member-main-address-style-us.inc' %]
474
    <legend id="main_address_lgd">Main address</legend><ol>
475
        [% UNLESS nostreetnumber %]
476
    <li>
477
      [% IF ( mandatorystreetnumber ) %]
478
      <label for="streetnumber" class="required">
479
      [% ELSE %]
480
      <label for="streetnumber">
481
      [% END %]
482
      Street number: </label>
483
        <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
484
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
485
    </li>
486
        [% END %]
487
        [% UNLESS nostreettype %]
488
    [% IF roadtypes %]
489
      <li>
490
      [% IF ( mandatorystreettype ) %]
491
      <label for="streettype" class="required">
492
      [% ELSE %]
493
      <label for="streettype">
494
      [% END %]
495
      Street type: </label>
496
      <select name="streettype">
497
        <option value=""></option>
498
        [% FOR roadtype IN roadtypes %]
499
          [% IF roadtype.selected %]
500
            <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option>
501
          [% ELSE %]
502
            <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option>
503
          [% END %]
504
        [% END %]
505
      </select>
506
	  [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
507
      </li>
508
    [% END %] 
509
        [% END %]
510
        [% UNLESS noaddress %]
511
    <li>
512
      [% IF ( mandatoryaddress ) %]
513
      <label for="address" class="required">
514
      [% ELSE %]
515
      <label for="address">
516
      [% END %]
517
      Address: </label>
518
            <input type="text" id="address" name="address" size="35" value="[% address %]" />
519
	  [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
520
    </li>
521
        [% END %]
522
        [% UNLESS noaddress2 %]
523
    <li>
524
      [% IF ( mandatoryaddress2 ) %]
525
      <label for="address2" class="required">
526
      [% ELSE %]
527
      <label for="address2">
528
      [% END %]
529
      Address 2: </label>
530
            <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
531
	  [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
532
    </li>  
533
        [% END %]
534
        [% UNLESS nocity %]
535
    <li>
536
      [% IF ( mandatorycity ) %]
537
        <label for="city" class="required">
538
      [% ELSE %]
539
        <label for="city">
540
      [% END %]
541
      City: </label>
542
        <input type="text" id="city" name="city" size="20" value="[% city %]" />
543
        [% IF ( city_cgipopup ) %]or <strong>choose</strong>
544
        <select id="select_city" name="select_city">
545
        [% FOREACH city_loo IN city_loop %]
546
            [% IF ( city_loo.selected ) %]
547
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
548
            [% ELSE %]
549
            <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
550
            [% END %]
551
                [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
552
            </option>
553
        [% END %]
554
        </select>
555
        [% END %]
556
	  [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
557
    </li>
558
        [% END %]
559
        [% UNLESS nostate %]
560
    <li> 
561
      [% IF ( mandatorystate ) %]
562
        <label for="state" class="required">
563
      [% ELSE %]
564
        <label for="state">
565
      [% END %]
566
      State: </label>
567
      <input type="text" name="state" id="state" size="20" value="[% state %]" />
568
	  [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
569
    </li>
570
        [% END %]
571
        [% UNLESS nozipcode %]
572
    <li> 
573
      [% IF ( mandatoryzipcode ) %]
574
        <label for="zipcode" class="required">
575
      [% ELSE %]
576
        <label for="zipcode">
577
      [% END %]
578
      Zip/Postal code: </label>
579
            <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
580
	  [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
581
    </li>
582
        [% END %]
583
        [% UNLESS nocountry %]
584
    <li> 
585
      [% IF ( mandatorycountry ) %]
586
        <label for="country" class="required">
587
      [% ELSE %]
588
        <label for="country">
589
      [% END %]
590
      Country: </label>
591
        <input type="text" name="country" id="country" size="20" value="[% country %]" />
592
	  [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
593
    </li>    
594
        [% END %]
595
	</ol>
596
    </fieldset>
597
[% END # nostreet && nocity etc group%]
474
[% END # nostreet && nocity etc group%]
598
475
599
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
476
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
Lines 682-914 Link Here
682
[% IF ( step_6 ) %]
559
[% IF ( step_6 ) %]
683
560
684
    [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
561
    [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
685
		<fieldset class="rows" id="memberentry_address">
562
[% INCLUDE 'member-alt-address-style-us.inc' %]
686
		<legend id="alt_address_lgd">Alternate address</legend><ol>
687
        [% UNLESS noB_address %]
688
			<li>
689
				[% IF ( mandatoryB_address ) %]
690
					<label for="B_address" class="required">
691
				[% ELSE %]
692
					<label for="B_address">
693
				[% END %]
694
				Address: </label>
695
                    <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
696
	  [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
697
			</li>
698
        [% END %]
699
        [% UNLESS noB_address2 %]
700
			<li>
701
				[% IF ( mandatoryB_address2 ) %]
702
					<label for="B_address2" class="required">
703
				[% ELSE %]
704
					<label for="B_address2">
705
				[% END %]
706
				Address 2: </label>
707
                    <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
708
	  [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
709
			</li>
710
        [% END %]
711
        [% UNLESS noB_city %]
712
			<li>
713
				[% IF ( mandatoryB_city ) %]
714
					<label for="B_city" class="required" >
715
				[% ELSE %]
716
					<label for="B_city">
717
				[% END %]
718
				City: </label>
719
                <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
720
	  [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
721
			</li>
722
        [% END %]
723
        [% UNLESS noB_state %]
724
			<li>
725
				[% IF ( mandatoryB_state ) %]
726
					<label for="B_state" class="required" >
727
				[% ELSE %]
728
					<label for="B_state">
729
				[% END %]
730
				State: </label>
731
                <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
732
	  [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
733
			</li>
734
        [% END %]
735
        [% UNLESS noB_zipcode %]
736
			<li>
737
				[% IF ( mandatoryB_zipcode ) %]
738
					<label for="B_zipcode" class="required">
739
				[% ELSE %]
740
					<label for="B_zipcode">
741
				[% END %]
742
				Zip/Postal code: </label>
743
                    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
744
	  [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
745
			</li>
746
        [% END %]
747
        [% UNLESS noB_country %]
748
			<li>
749
				[% IF ( mandatoryB_country ) %]
750
					<label for="B_country" class="required">
751
				[% ELSE %]
752
					<label for="B_country">
753
				[% END %]
754
				Country: </label>
755
                    <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
756
	  [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
757
			</li>
758
        [% END %]
759
        [% UNLESS noB_phone %]
760
            <li>
761
                [% IF ( mandatoryB_phone ) %]
762
                <label for="B_phone" class="required">
763
                [% ELSE %]
764
                <label for="B_phone">
765
                [% END %]
766
                Phone: </label>
767
                    <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
768
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
769
            </li>
770
        [% END %]
771
        [% UNLESS noB_email %]
772
			<li> 
773
        [% IF ( mandatoryB_email ) %]
774
          <label for="B_email" class="required">
775
        [% ELSE %]
776
          <label for="B_email">
777
        [% END %]
778
        Email: </label>
779
            <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
780
		[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
781
        [% END %]
782
        [% UNLESS nocontactnote %]
783
            <li>
784
                [% IF ( mandatorycontactnote ) %]
785
                <label for="contactnote" class="required">
786
                [% ELSE %]
787
                <label for="contactnote">
788
                [% END %]
789
                Contact note: </label>
790
                <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
791
        [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
792
            </li>
793
        [% END %]
794
			</ol>
795
		</fieldset>
796
    [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
563
    [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
797
[% END %]
564
[% END %]
798
[% IF ( step_2 ) %]
565
[% IF ( step_2 ) %]
799
    [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
566
    [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
800
		<fieldset class="rows" id="memberentry_altaddress">       
567
[% INCLUDE 'member-alt-contact-style-us.inc' %]
801
            <legend id="alt_contact_lgd">Alternate contact</legend><ol>
802
        [% UNLESS noaltcontactsurname %]
803
			<li>
804
			    [% IF ( mandatoryaltcontactsurname ) %]
805
				<label for="altcontactsurname" class="required">
806
				[% ELSE %]
807
				<label for="altcontactsurname">
808
				[% END %]
809
				Surname:</label>
810
                    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
811
				[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
812
			</li>
813
        [% END %]
814
        [% UNLESS noaltcontactfirstname %]
815
			<li>
816
			    [% IF ( mandatoryaltcontactfirstname ) %]
817
				<label for="altcontactfirstname" class="required">
818
				[% ELSE %]
819
				<label for="altcontactfirstname">
820
				[% END %]
821
				First name:</label>
822
                    <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
823
				[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
824
			</li>
825
        [% END %]
826
        [% UNLESS noaltcontactaddress1 %]
827
			<li>
828
			    [% IF ( mandatoryaltcontactaddress1 ) %]
829
				<label for="altcontactaddress1" class="required">
830
				[% ELSE %]
831
				<label for="altcontactaddress1">
832
				[% END %]
833
				Address:</label>
834
                    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
835
				[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
836
			</li>
837
        [% END %]
838
        [% UNLESS noaltcontactaddress2 %]
839
			<li>
840
			    [% IF ( mandatoryaltcontactaddress2 ) %]
841
				<label for="altcontactaddress2" class="required">
842
				[% ELSE %]
843
				<label for="altcontactaddress2">
844
				[% END %]
845
				Address 2:</label>
846
                <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
847
				[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
848
			</li>
849
        [% END %]
850
        [% UNLESS noaltcontactaddress3 %]
851
			<li>
852
			    [% IF ( mandatoryaltcontactaddress3 ) %]
853
				<label for="altcontactaddress3" class="required">
854
				[% ELSE %]
855
				<label for="altcontactaddress3">
856
				[% END %]
857
				City:</label>
858
                <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
859
				[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
860
			</li>
861
        [% END %]
862
        [% UNLESS noaltcontactstate %]
863
			<li>
864
			    [% IF ( mandatoryaltcontactstate ) %]
865
				<label for="altcontactstate" class="required">
866
				[% ELSE %]
867
				<label for="altcontactstate">
868
				[% END %]
869
				State:</label>
870
                <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
871
				[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
872
			</li>
873
        [% END %]
874
        [% UNLESS noaltcontactzipcode %]
875
			<li>
876
			    [% IF ( mandatoryaltcontactzipcode ) %]
877
				<label for="altcontactzipcode" class="required">
878
				[% ELSE %]
879
				<label for="altcontactzipcode">
880
				[% END %]
881
				Zip/Postal code:</label>
882
                    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
883
				[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
884
			</li>
885
        [% END %]
886
        [% UNLESS noaltcontactcountry %]
887
			<li>
888
			    [% IF ( mandatoryaltcontactcountry ) %]
889
				<label for="altcontactcountry" class="required">
890
				[% ELSE %]
891
				<label for="altcontactcountry">
892
				[% END %]
893
				Country:</label>
894
                    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
895
				[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
896
			</li>			
897
        [% END %]
898
        [% UNLESS noaltcontactphone %]
899
			<li>
900
			    [% IF ( mandatoryaltcontactphone ) %]
901
				<label for="altcontactphone" class="required">
902
				[% ELSE %]
903
				<label for="altcontactphone">
904
				[% END %]
905
				Phone:</label>
906
                    <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
907
				[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
908
			</li>
909
        [% END %]
910
            </ol>
911
        </fieldset>
912
    [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
568
    [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
913
569
914
[% END %]
570
[% END %]
915
- 

Return to bug 4041