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 %] |