2 [% USE AuthorisedValues %]
3 [% BLOCK 'main-address-style' %]
4 <fieldset class="rows" id="memberentry_mainaddress">
5 <legend id="main_address_lgd">Main address</legend>
7 [% IF Koha.Preference( 'AddressFormat' ) %]
8 [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
10 [% PROCESS 'member-main-address-style-us' %]
16 [% BLOCK 'member-main-address-style-us' %]
17 [% PROCESS 'address-style_streetnumber' %]
18 [% PROCESS 'address-style_roadtypes' %]
19 [% PROCESS 'address-style_address' %]
20 [% PROCESS 'address-style_address2' %]
21 [% PROCESS 'address-style_city' %]
22 [% PROCESS 'address-style_state' %]
23 [% PROCESS 'address-style_zipcode' %]
24 [% PROCESS 'address-style_country' %]
27 [% BLOCK 'member-main-address-style-de' %]
28 [% PROCESS 'address-style_roadtypes' %]
29 [% PROCESS 'address-style_address' %]
30 [% PROCESS 'address-style_streetnumber' %]
31 [% PROCESS 'address-style_address2' %]
32 [% PROCESS 'address-style_zipcode' %]
33 [% PROCESS 'address-style_city' %]
34 [% PROCESS 'address-style_state' %]
35 [% PROCESS 'address-style_country' %]
38 [% BLOCK 'member-main-address-style-fr' %]
39 [% PROCESS 'address-style_streetnumber' %]
40 [% PROCESS 'address-style_roadtypes' %]
41 [% PROCESS 'address-style_address' %]
42 [% PROCESS 'address-style_address2' %]
43 [% PROCESS 'address-style_zipcode' %]
44 [% PROCESS 'address-style_city' %]
45 [% PROCESS 'address-style_state' %]
46 [% PROCESS 'address-style_country' %]
49 [% BLOCK 'address-style_roadtypes' %]
50 [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
51 [% IF roadtypes.count %]
52 [% UNLESS nostreettype %]
54 [% IF ( mandatorystreettype ) %]
55 <label for="streettype" class="required">
57 <label for="streettype">
60 <select name="streettype">
61 <option value=""></option>
62 [% FOR roadtype IN roadtypes %]
63 [% IF roadtype.authorised_value == patron.streettype %]
64 <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
66 <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
70 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
76 [% BLOCK 'address-style_address' %]
77 [% UNLESS noaddress %]
79 [% IF ( mandatoryaddress ) %]
80 <label for="address" class="required">
85 <input type="text" id="address" name="address" size="40" value="[% patron.address | html %]" />
86 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
91 [% BLOCK 'address-style_streetnumber' %]
92 [% UNLESS nostreetnumber %]
94 [% IF ( mandatorystreetnumber ) %]
95 <label for="streetnumber" class="required">
97 <label for="streetnumber">
99 Street number: </label>
100 <input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" />
101 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
106 [% BLOCK 'address-style_address2' %]
107 [% UNLESS noaddress2 %]
109 [% IF ( mandatoryaddress2 ) %]
110 <label for="address2" class="required">
112 <label for="address2">
115 <input type="text" id="address2" name="address2" size="40" value="[% patron.address2 | html %]" />
116 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
121 [% BLOCK 'address-style_zipcode' %]
122 [% UNLESS nozipcode %]
124 [% IF ( mandatoryzipcode ) %]
125 <label for="zipcode" class="required">
127 <label for="zipcode">
129 ZIP/Postal code: </label>
130 <input type="text" id="zipcode" name="zipcode" maxlength="10" size="10" value="[% patron.zipcode | html %]" />
131 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
136 [% BLOCK 'address-style_city' %]
139 [% IF ( mandatorycity ) %]
140 <label for="city" class="required" >
145 [% IF cities.count %]
146 <select class="select_city" data-addressfield="" name="select_city">
147 <option value="|||"></option>
148 [% FOREACH c IN cities %]
149 [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %]
150 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
152 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
154 [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
158 <span class="hint">or enter</span>
160 <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" />
161 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
166 [% BLOCK 'address-style_state' %]
169 [% IF ( mandatorystate ) %]
170 <label for="state" class="required" >
175 <input type="text" id="state" name="state" size="20" value="[% patron.state | html %]" />
176 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
181 [% BLOCK 'address-style_country' %]
182 [% UNLESS nocountry %]
184 [% IF ( mandatorycountry ) %]
185 <label for="country" class="required">
187 <label for="country">
190 <input type="text" id="country" name="country" size="20" value="[% patron.country | html %]" />
191 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]