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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc (-162 lines)
Lines 1-162 Link Here
1
        <fieldset class="rows" id="memberentry_address">
2
        <legend id="alt_address_lgd">Alternate address</legend><ol>
3
4
        [% IF roadtypes %]
5
                <li>
6
            [% IF ( mandatoryB_streettype ) %]
7
                <label for="B_streettype" class="required">
8
            [% ELSE %]
9
                <label for="B_streettype">
10
        [% END %]
11
            Street type: </label>
12
            <select name="B_streettype">
13
            <option value=""></option>
14
            [% FOR roadtype IN roadtypes %]
15
                [% IF roadtype.authorised_value == patron.B_streettype %]
16
                    <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
17
                [% ELSE %]
18
                    <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
19
                [% END %]
20
            [% END %]
21
            </select>
22
            [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %]
23
            </li>
24
        [% END %]
25
26
        [% UNLESS noB_address %]
27
            <li>
28
                [% IF ( mandatoryB_address ) %]
29
                    <label for="B_address" class="required">
30
                [% ELSE %]
31
                    <label for="B_address">
32
                [% END %]
33
                Address: </label>
34
                    <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
35
      [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
36
            </li>
37
        [% END %]
38
39
        [% UNLESS noB_streetnumber %]
40
            <li>
41
                [% IF ( mandatoryB_streetnumber ) %]
42
                    <label for="B_streetnumber" class="required">
43
                [% ELSE %]
44
                    <label for="B_streetnumber">
45
                [% END %]
46
                Street Number: </label>
47
                    <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" />
48
                [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
49
            </li>
50
        [% END %]
51
52
        [% UNLESS noB_address2 %]
53
            <li>
54
                [% IF ( mandatoryB_address2 ) %]
55
                    <label for="B_address2" class="required">
56
                [% ELSE %]
57
                    <label for="B_address2">
58
                [% END %]
59
                Address 2: </label>
60
                    <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
61
      [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
62
            </li>
63
        [% END %]
64
        [% UNLESS noB_zipcode %]
65
                        <li>
66
                                [% IF ( mandatoryB_zipcode ) %]
67
                                        <label for="B_zipcode" class="required">
68
                                [% ELSE %]
69
                                        <label for="B_zipcode">
70
                                [% END %]
71
                                ZIP/Postal code: </label>
72
                    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
73
          [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
74
                        </li>
75
        [% END %]
76
        [% UNLESS noB_city %]
77
            <li>
78
                [% IF ( mandatoryB_city ) %]
79
                    <label for="B_city" class="required" >
80
                [% ELSE %]
81
                    <label for="B_city">
82
                [% END %]
83
                City: </label>
84
                <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city | html %]" />
85
                [% IF cities.count %]or choose
86
                    <select class="select_city" data-addressfield="B_" name="select_city">
87
                        <option value="|||"></option>
88
                        [% FOREACH c IN cities %]
89
                            [% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
90
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
91
                            [% ELSE %]
92
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
93
                            [% END %]
94
                                [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
95
                            </option>
96
                        [% END %]
97
                    </select>
98
                [% END %]
99
      [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
100
            </li>
101
        [% END %]
102
        [% UNLESS noB_state %]
103
            <li>
104
                [% IF ( mandatoryB_state ) %]
105
                    <label for="B_state" class="required" >
106
                [% ELSE %]
107
                    <label for="B_state">
108
                [% END %]
109
                State: </label>
110
                <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
111
      [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
112
            </li>
113
        [% END %]
114
        [% UNLESS noB_country %]
115
            <li>
116
                [% IF ( mandatoryB_country ) %]
117
                    <label for="B_country" class="required">
118
                [% ELSE %]
119
                    <label for="B_country">
120
                [% END %]
121
                Country: </label>
122
                    <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
123
      [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
124
            </li>
125
        [% END %]
126
        [% UNLESS noB_phone %]
127
            <li>
128
                [% IF ( mandatoryB_phone ) %]
129
                <label for="B_phone" class="required">
130
                [% ELSE %]
131
                <label for="B_phone">
132
                [% END %]
133
                Phone: </label>
134
                    <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
135
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
136
            </li>
137
        [% END %]
138
        [% UNLESS noB_email %]
139
            <li>
140
        [% IF ( mandatoryB_email ) %]
141
          <label for="B_email" class="required">
142
        [% ELSE %]
143
          <label for="B_email">
144
        [% END %]
145
        Email: </label>
146
            <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" />
147
        [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
148
        [% END %]
149
        [% UNLESS nocontactnote %]
150
            <li>
151
                [% IF ( mandatorycontactnote ) %]
152
                <label for="contactnote" class="required">
153
                [% ELSE %]
154
                <label for="contactnote">
155
                [% END %]
156
                Contact note: </label>
157
                <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
158
        [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
159
            </li>
160
        [% END %]
161
            </ol>
162
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-fr.inc (-162 lines)
Lines 1-162 Link Here
1
<fieldset class="rows" id="memberentry_address">
2
<legend id="alt_address_lgd">Alternate address</legend><ol>
3
4
[% UNLESS noB_streetnumber %]
5
    <li>
6
    [% IF ( mandatoryB_streetnumber ) %]
7
         <label for="B_streetnumber" class="required">
8
    [% ELSE %]
9
         <label for="B_streetnumber">
10
    [% END %]
11
    Street Number: </label>
12
    <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" />
13
    [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
14
    </li>
15
[% END %]
16
17
[% IF roadtypes %]
18
    <li>
19
    [% IF ( mandatoryB_streettype ) %]
20
         <label for="B_streettype" class="required">
21
    [% ELSE %]
22
         <label for="B_streettype">
23
    [% END %]
24
    Street type: </label>
25
    <select name="B_streettype">
26
    <option value=""></option>
27
    [% FOR roadtype IN roadtypes %]
28
        [% IF roadtype.authorised_value == patron.B_streettype %]
29
            <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
30
        [% ELSE %]
31
            <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
32
        [% END %]
33
    [% END %]
34
    </select>
35
    [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %]
36
    </li>
37
[% END %]
38
39
[% UNLESS noB_address %]
40
    <li>
41
    [% IF ( mandatoryB_address ) %]
42
        <label for="B_address" class="required">
43
    [% ELSE %]
44
        <label for="B_address">
45
    [% END %]
46
        Address: </label>
47
        <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
48
    [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
49
        </li>
50
[% END %]
51
52
[% UNLESS noB_address2 %]
53
    <li>
54
    [% IF ( mandatoryB_address2 ) %]
55
        <label for="B_address2" class="required">
56
    [% ELSE %]
57
        <label for="B_address2">
58
    [% END %]
59
    Address 2: </label>
60
    <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
61
    [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
62
    </li>
63
[% END %]
64
[% UNLESS noB_zipcode %]
65
    <li>
66
    [% IF ( mandatoryB_zipcode ) %]
67
        <label for="B_zipcode" class="required">
68
    [% ELSE %]
69
        <label for="B_zipcode">
70
    [% END %]
71
    ZIP/Postal code: </label>
72
    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
73
    [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
74
    </li>
75
[% END %]
76
[% UNLESS noB_city %]
77
    <li>
78
    [% IF ( mandatoryB_city ) %]
79
        <label for="B_city" class="required" >
80
    [% ELSE %]
81
        <label for="B_city">
82
    [% END %]
83
    City: </label>
84
    <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city | html %]" />
85
                [% IF cities.count %]or choose
86
                    <select class="select_city" data-addressfield="B_" name="select_city">
87
                        <option value="|||"></option>
88
                        [% FOREACH c IN cities %]
89
                            [% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
90
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
91
                            [% ELSE %]
92
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
93
                            [% END %]
94
                                [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
95
                            </option>
96
                        [% END %]
97
                    </select>
98
                [% END %]
99
    [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
100
    </li>
101
[% END %]
102
[% UNLESS noB_state %]
103
    <li>
104
    [% IF ( mandatoryB_state ) %]
105
        <label for="B_state" class="required" >
106
    [% ELSE %]
107
        <label for="B_state">
108
    [% END %]
109
        State: </label>
110
        <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
111
    [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
112
    </li>
113
[% END %]
114
[% UNLESS noB_country %]
115
    <li>
116
    [% IF ( mandatoryB_country ) %]
117
        <label for="B_country" class="required">
118
    [% ELSE %]
119
        <label for="B_country">
120
    [% END %]
121
        Country: </label>
122
        <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
123
    [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
124
    </li>
125
[% END %]
126
[% UNLESS noB_phone %]
127
   <li>
128
   [% IF ( mandatoryB_phone ) %]
129
       <label for="B_phone" class="required">
130
   [% ELSE %]
131
       <label for="B_phone">
132
   [% END %]
133
   Phone: </label>
134
   <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
135
   [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
136
   </li>
137
[% END %]
138
[% UNLESS noB_email %]
139
   <li>
140
   [% IF ( mandatoryB_email ) %]
141
       <label for="B_email" class="required">
142
   [% ELSE %]
143
       <label for="B_email">
144
   [% END %]
145
       Email: </label>
146
       <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" />
147
   [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
148
[% END %]
149
[% UNLESS nocontactnote %]
150
    <li>
151
    [% IF ( mandatorycontactnote ) %]
152
        <label for="contactnote" class="required">
153
    [% ELSE %]
154
        <label for="contactnote">
155
    [% END %]
156
        Contact note: </label>
157
        <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
158
    [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
159
        </li>
160
    [% END %]
161
</ol>
162
</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc (-160 lines)
Lines 1-160 Link Here
1
        <fieldset class="rows" id="memberentry_address">
2
        <legend id="alt_address_lgd">Alternate address</legend><ol>
3
        [% UNLESS noB_streetnumber %]
4
            <li>
5
                [% IF ( mandatoryB_streetnumber ) %]
6
                    <label for="B_streetnumber" class="required">
7
                [% ELSE %]
8
                    <label for="B_streetnumber">
9
                [% END %]
10
                Street Number: </label>
11
                <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" />
12
               [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
13
            </li>
14
        [% END %]
15
16
        [% IF roadtypes %]
17
                <li>
18
            [% IF ( mandatoryB_streettype ) %]
19
                <label for="B_streettype" class="required">
20
            [% ELSE %]
21
                <label for="B_streettype">
22
        [% END %]
23
        Street type: </label>
24
        <select name="B_streettype">
25
        <option value=""></option>
26
        [% FOR roadtype IN roadtypes %]
27
            [% IF roadtype.authorised_value == patron.B_streettype %]
28
                <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
29
            [% ELSE %]
30
                <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
31
            [% END %]
32
        [% END %]
33
        </select>
34
        [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %]
35
        </li>
36
      [% END %]
37
38
        [% UNLESS noB_address %]
39
            <li>
40
                [% IF ( mandatoryB_address ) %]
41
                    <label for="B_address" class="required">
42
                [% ELSE %]
43
                    <label for="B_address">
44
                [% END %]
45
                Address: </label>
46
                    <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
47
      [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
48
            </li>
49
        [% END %]
50
        [% UNLESS noB_address2 %]
51
            <li>
52
                [% IF ( mandatoryB_address2 ) %]
53
                    <label for="B_address2" class="required">
54
                [% ELSE %]
55
                    <label for="B_address2">
56
                [% END %]
57
                Address 2: </label>
58
                    <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
59
      [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
60
            </li>
61
        [% END %]
62
        [% UNLESS noB_city %]
63
            <li>
64
                [% IF ( mandatoryB_city ) %]
65
                    <label for="B_city" class="required" >
66
                [% ELSE %]
67
                    <label for="B_city">
68
                [% END %]
69
                City: </label>
70
                <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city | html %]" />
71
                [% IF cities.count %]or choose
72
                    <select class="select_city" data-addressfield="B_" name="select_city">
73
                        <option value="|||"></option>
74
                        [% FOREACH c IN cities %]
75
                            [% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
76
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
77
                            [% ELSE %]
78
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
79
                            [% END %]
80
                                [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
81
                            </option>
82
                        [% END %]
83
                    </select>
84
                [% END %]
85
                [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
86
            </li>
87
        [% END %]
88
        [% UNLESS noB_state %]
89
            <li>
90
                [% IF ( mandatoryB_state ) %]
91
                    <label for="B_state" class="required" >
92
                [% ELSE %]
93
                    <label for="B_state">
94
                [% END %]
95
                State: </label>
96
                <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
97
      [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
98
            </li>
99
        [% END %]
100
        [% UNLESS noB_zipcode %]
101
            <li>
102
                [% IF ( mandatoryB_zipcode ) %]
103
                    <label for="B_zipcode" class="required">
104
                [% ELSE %]
105
                    <label for="B_zipcode">
106
                [% END %]
107
                ZIP/Postal code: </label>
108
                    <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
109
      [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
110
            </li>
111
        [% END %]
112
        [% UNLESS noB_country %]
113
            <li>
114
                [% IF ( mandatoryB_country ) %]
115
                    <label for="B_country" class="required">
116
                [% ELSE %]
117
                    <label for="B_country">
118
                [% END %]
119
                Country: </label>
120
                    <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
121
      [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
122
            </li>
123
        [% END %]
124
        [% UNLESS noB_phone %]
125
            <li>
126
                [% IF ( mandatoryB_phone ) %]
127
                <label for="B_phone" class="required">
128
                [% ELSE %]
129
                <label for="B_phone">
130
                [% END %]
131
                Phone: </label>
132
                    <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
133
                [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
134
            </li>
135
        [% END %]
136
        [% UNLESS noB_email %]
137
            <li>
138
        [% IF ( mandatoryB_email ) %]
139
          <label for="B_email" class="required">
140
        [% ELSE %]
141
          <label for="B_email">
142
        [% END %]
143
        Email: </label>
144
            <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" />
145
        [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
146
        [% END %]
147
        [% UNLESS nocontactnote %]
148
            <li>
149
                [% IF ( mandatorycontactnote ) %]
150
                <label for="contactnote" class="required">
151
                [% ELSE %]
152
                <label for="contactnote">
153
                [% END %]
154
                Contact note: </label>
155
                <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
156
        [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
157
            </li>
158
        [% END %]
159
            </ol>
160
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc (+244 lines)
Line 0 Link Here
1
[% USE Koha %]
2
[% BLOCK 'alt-address-style' %]
3
    <fieldset class="rows" id="memberentry_address">
4
        <legend id="alt_address_lgd">Alternate address</legend>
5
        <ol>
6
            [% IF Koha.Preference( 'AddressFormat' ) %]
7
                [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
8
            [% ELSE %]
9
                [% PROCESS 'member-alt-address-style-us' %]
10
            [% END %]
11
        </ol>
12
    </fieldset>
13
[% END %]
14
15
[% BLOCK 'member-alt-address-style-us' %]
16
    [% PROCESS 'alt-address-style_B_streetnumber' %]
17
    [% PROCESS 'alt-address-style_roadtypes' %]
18
    [% PROCESS 'alt-address-style_B_address' %]
19
    [% PROCESS 'alt-address-style_B_address2' %]
20
    [% PROCESS 'alt-address-style_B_city' %]
21
    [% PROCESS 'alt-address-style_B_state' %]
22
    [% PROCESS 'alt-address-style_B_zipcode' %]
23
    [% PROCESS 'alt-address-style_B_country' %]
24
    [% PROCESS 'alt-address-style_B_phone' %]
25
    [% PROCESS 'alt-address-style_B_email' %]
26
    [% PROCESS 'alt-address-style_B_contactnote' %]
27
[% END %]
28
29
[% BLOCK 'member-alt-address-style-de' %]
30
    [% PROCESS 'alt-address-style_roadtypes' %]
31
    [% PROCESS 'alt-address-style_B_address' %]
32
    [% PROCESS 'alt-address-style_B_streetnumber' %]
33
    [% PROCESS 'alt-address-style_B_address2' %]
34
    [% PROCESS 'alt-address-style_B_zipcode' %]
35
    [% PROCESS 'alt-address-style_B_city' %]
36
    [% PROCESS 'alt-address-style_B_state' %]
37
    [% PROCESS 'alt-address-style_B_country' %]
38
    [% PROCESS 'alt-address-style_B_phone' %]
39
    [% PROCESS 'alt-address-style_B_email' %]
40
    [% PROCESS 'alt-address-style_B_contactnote' %]
41
[% END %]
42
43
[% BLOCK 'member-alt-address-style-fr' %]
44
    [% PROCESS 'alt-address-style_B_streetnumber' %]
45
    [% PROCESS 'alt-address-style_roadtypes' %]
46
    [% PROCESS 'alt-address-style_B_address' %]
47
    [% PROCESS 'alt-address-style_B_address2' %]
48
    [% PROCESS 'alt-address-style_B_zipcode' %]
49
    [% PROCESS 'alt-address-style_B_city' %]
50
    [% PROCESS 'alt-address-style_B_state' %]
51
    [% PROCESS 'alt-address-style_B_country' %]
52
    [% PROCESS 'alt-address-style_B_phone' %]
53
    [% PROCESS 'alt-address-style_B_email' %]
54
    [% PROCESS 'alt-address-style_B_contactnote' %]
55
[% END %]
56
57
[% BLOCK 'alt-address-style_roadtypes' %]
58
    [% IF roadtypes %]
59
        <li>
60
            [% IF ( mandatoryB_streettype ) %]
61
                <label for="B_streettype" class="required">
62
            [% ELSE %]
63
                <label for="B_streettype">
64
            [% END %]
65
            Street type: </label>
66
            <select name="B_streettype">
67
                <option value=""></option>
68
                [% FOR roadtype IN roadtypes %]
69
                    [% IF roadtype.authorised_value == patron.B_streettype %]
70
                        <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
71
                    [% ELSE %]
72
                        <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
73
                    [% END %]
74
                [% END %]
75
            </select>
76
            [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %]
77
        </li>
78
    [% END %]
79
[% END %]
80
81
[% BLOCK 'alt-address-style_B_address' %]
82
    [% UNLESS noB_address %]
83
        <li>
84
            [% IF ( mandatoryB_address ) %]
85
                <label for="B_address" class="required">
86
            [% ELSE %]
87
                <label for="B_address">
88
            [% END %]
89
            Address: </label>
90
            <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
91
          [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
92
        </li>
93
    [% END %]
94
[% END %]
95
96
[% BLOCK 'alt-address-style_B_streetnumber' %]
97
    [% UNLESS noB_streetnumber %]
98
        <li>
99
            [% IF ( mandatoryB_streetnumber ) %]
100
                <label for="B_streetnumber" class="required">
101
            [% ELSE %]
102
                <label for="B_streetnumber">
103
            [% END %]
104
            Street Number: </label>
105
            <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" />
106
            [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
107
        </li>
108
    [% END %]
109
[% END %]
110
111
[% BLOCK 'alt-address-style_B_address2' %]
112
    [% UNLESS noB_address2 %]
113
        <li>
114
            [% IF ( mandatoryB_address2 ) %]
115
                <label for="B_address2" class="required">
116
            [% ELSE %]
117
                <label for="B_address2">
118
            [% END %]
119
            Address 2: </label>
120
            <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
121
            [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
122
        </li>
123
    [% END %]
124
[% END %]
125
126
[% BLOCK 'alt-address-style_B_zipcode' %]
127
    [% UNLESS noB_zipcode %]
128
        <li>
129
            [% IF ( mandatoryB_zipcode ) %]
130
                <label for="B_zipcode" class="required">
131
            [% ELSE %]
132
                <label for="B_zipcode">
133
            [% END %]
134
            ZIP/Postal code: </label>
135
            <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
136
              [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
137
        </li>
138
    [% END %]
139
[% END %]
140
141
[% BLOCK 'alt-address-style_B_city' %]
142
    [% UNLESS noB_city %]
143
        <li>
144
            [% IF ( mandatoryB_city ) %]
145
                <label for="B_city" class="required" >
146
            [% ELSE %]
147
                <label for="B_city">
148
            [% END %]
149
            City: </label>
150
            <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city | html %]" />
151
            [% IF cities.count %]
152
                or choose
153
                <select class="select_city" data_addressfield="B_" name="select_city">
154
                    <option value="|||"></option>
155
                    [% FOREACH c IN cities %]
156
                        [% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
157
                        <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
158
                        [% ELSE %]
159
                        <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
160
                        [% END %]
161
                            [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
162
                        </option>
163
                    [% END %]
164
                </select>
165
            [% END %]
166
            [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
167
        </li>
168
    [% END %]
169
[% END %]
170
171
[% BLOCK 'alt-address-style_B_state' %]
172
    [% UNLESS noB_state %]
173
        <li>
174
            [% IF ( mandatoryB_state ) %]
175
                <label for="B_state" class="required" >
176
            [% ELSE %]
177
                <label for="B_state">
178
            [% END %]
179
            State: </label>
180
            <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
181
            [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
182
        </li>
183
    [% END %]
184
[% END %]
185
186
[% BLOCK 'alt-address-style_B_country' %]
187
    [% UNLESS noB_country %]
188
        <li>
189
            [% IF ( mandatoryB_country ) %]
190
                <label for="B_country" class="required">
191
            [% ELSE %]
192
                <label for="B_country">
193
            [% END %]
194
            Country: </label>
195
            <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
196
            [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
197
        </li>
198
    [% END %]
199
[% END %]
200
201
[% BLOCK 'alt-address-style_B_phone' %]
202
    [% UNLESS noB_phone %]
203
        <li>
204
            [% IF ( mandatoryB_phone ) %]
205
                <label for="B_phone" class="required">
206
            [% ELSE %]
207
                <label for="B_phone">
208
            [% END %]
209
            Phone: </label>
210
            <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
211
            [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
212
        </li>
213
    [% END %]
214
[% END %]
215
216
[% BLOCK 'alt-address-style_B_email' %]
217
    [% UNLESS noB_email %]
218
        <li>
219
            [% IF ( mandatoryB_email ) %]
220
                <label for="B_email" class="required">
221
            [% ELSE %]
222
                <label for="B_email">
223
            [% END %]
224
            Email: </label>
225
            <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" />
226
            [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %]
227
        </li>
228
    [% END %]
229
[% END %]
230
231
[% BLOCK 'alt-address-style_B_contactnote' %]
232
    [% UNLESS nocontactnote %]
233
        <li>
234
            [% IF ( mandatorycontactnote ) %]
235
                <label for="contactnote" class="required">
236
            [% ELSE %]
237
                <label for="contactnote">
238
            [% END %]
239
            Contact note: </label>
240
            <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
241
            [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
242
        </li>
243
    [% END %]
244
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-6 / +2 lines)
Lines 5-10 Link Here
5
[% USE Koha %]
5
[% USE Koha %]
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% USE Branches %]
7
[% USE Branches %]
8
[% PROCESS 'member-alt-address-style.inc' %]
8
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
[% INCLUDE 'doc-head-open.inc' %]
10
    <title>Koha &rsaquo; Patrons &rsaquo;
11
    <title>Koha &rsaquo; Patrons &rsaquo;
Lines 739-749 legend:hover { Link Here
739
740
740
                            [% IF ( step_6 ) %]
741
                            [% IF ( step_6 ) %]
741
                                [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
742
                                [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
742
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
743
                                    [% PROCESS 'alt-address-style' %]
743
                                        [% INCLUDE "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
744
                                    [% ELSE %]
745
                                        [% INCLUDE 'member-alt-address-style-us.inc' %]
746
                                    [% END %]
747
                                [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
744
                                [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
748
                            [% END # /IF ( step_6 ) %]
745
                            [% END # /IF ( step_6 ) %]
749
746
750
- 

Return to bug 25070