2 [% BLOCK 'alt-contact-style' %]
3 <fieldset class="rows" id="memberentry_altaddress">
4 <legend id="alt_contact_lgd">Alternate contact</legend>
6 [% IF Koha.Preference( 'AddressFormat' ) %]
7 [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %]
9 [% PROCESS 'member-alt-contact-style-us' %]
15 [% BLOCK 'member-alt-contact-style-us' %]
16 [% PROCESS 'alt-contact-style_altcontactsurname' %]
17 [% PROCESS 'alt-contact-style_altcontactfirstname' %]
18 [% PROCESS 'alt-contact-style_altcontactaddress1' %]
19 [% PROCESS 'alt-contact-style_altcontactaddress2' %]
20 [% PROCESS 'alt-contact-style_altcontactaddress3' %]
21 [% PROCESS 'alt-contact-style_altcontactstate' %]
22 [% PROCESS 'alt-contact-style_altcontactzipcode' %]
23 [% PROCESS 'alt-contact-style_altcontactcountry' %]
24 [% PROCESS 'alt-contact-style_altcontactphone' %]
27 [% BLOCK 'member-alt-contact-style-de' %]
28 [% PROCESS 'alt-contact-style_altcontactsurname' %]
29 [% PROCESS 'alt-contact-style_altcontactfirstname' %]
30 [% PROCESS 'alt-contact-style_altcontactaddress1' %]
31 [% PROCESS 'alt-contact-style_altcontactaddress2' %]
32 [% PROCESS 'alt-contact-style_altcontactzipcode' %]
33 [% PROCESS 'alt-contact-style_altcontactaddress3' %]
34 [% PROCESS 'alt-contact-style_altcontactstate' %]
35 [% PROCESS 'alt-contact-style_altcontactcountry' %]
36 [% PROCESS 'alt-contact-style_altcontactphone' %]
39 [% BLOCK 'member-alt-contact-style-fr' %]
40 [% PROCESS 'alt-contact-style_altcontactsurname' %]
41 [% PROCESS 'alt-contact-style_altcontactfirstname' %]
42 [% PROCESS 'alt-contact-style_altcontactaddress1' %]
43 [% PROCESS 'alt-contact-style_altcontactaddress2' %]
44 [% PROCESS 'alt-contact-style_altcontactzipcode' %]
45 [% PROCESS 'alt-contact-style_altcontactaddress3' %]
46 [% PROCESS 'alt-contact-style_altcontactstate' %]
47 [% PROCESS 'alt-contact-style_altcontactcountry' %]
48 [% PROCESS 'alt-contact-style_altcontactphone' %]
51 [% BLOCK 'alt-contact-style_altcontactsurname' %]
52 [% UNLESS noaltcontactsurname %]
54 [% IF ( mandatoryaltcontactsurname ) %]
55 <label for="altcontactsurname" class="required">
57 <label for="altcontactsurname">
60 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
61 [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
66 [% BLOCK 'alt-contact-style_altcontactfirstname' %]
67 [% UNLESS noaltcontactfirstname %]
69 [% IF ( mandatoryaltcontactfirstname ) %]
70 <label for="altcontactfirstname" class="required">
72 <label for="altcontactfirstname">
75 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
76 [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
81 [% BLOCK 'alt-contact-style_altcontactaddress1' %]
82 [% UNLESS noaltcontactaddress1 %]
84 [% IF ( mandatoryaltcontactaddress1 ) %]
85 <label for="altcontactaddress1" class="required">
87 <label for="altcontactaddress1">
90 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
91 [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
96 [% BLOCK 'alt-contact-style_altcontactaddress2' %]
97 [% UNLESS noaltcontactaddress2 %]
99 [% IF ( mandatoryaltcontactaddress2 ) %]
100 <label for="altcontactaddress2" class="required">
102 <label for="altcontactaddress2">
105 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
106 [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
111 [% BLOCK 'alt-contact-style_altcontactzipcode' %]
112 [% UNLESS noaltcontactzipcode %]
114 [% IF ( mandatoryaltcontactzipcode ) %]
115 <label for="altcontactzipcode" class="required">
117 <label for="altcontactzipcode">
119 ZIP/Postal code: </label>
120 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
121 [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
126 [% BLOCK 'alt-contact-style_altcontactaddress3' %]
127 [% UNLESS noaltcontactaddress3 %]
129 [% IF ( mandatoryaltcontactaddress3 ) %]
130 <label for="altcontactaddress3" class="required">
132 <label for="altcontactaddress3">
135 [% IF cities.count %]
136 <select class="select_city" data-addressfield="altcontact" name="select_city">
137 <option value="|||"></option>
138 [% FOREACH c IN cities %]
139 [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
140 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
142 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
144 [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
148 <span class="hint">or enter</span>
150 <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
151 [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
156 [% BLOCK 'alt-contact-style_altcontactstate' %]
157 [% UNLESS noaltcontactstate %]
159 [% IF ( mandatoryaltcontactstate ) %]
160 <label for="altcontactstate" class="required">
162 <label for="altcontactstate">
165 <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
166 [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
171 [% BLOCK 'alt-contact-style_altcontactcountry' %]
172 [% UNLESS noaltcontactcountry %]
174 [% IF ( mandatoryaltcontactcountry ) %]
175 <label for="altcontactcountry" class="required">
177 <label for="altcontactcountry">
180 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
181 [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
186 [% BLOCK 'alt-contact-style_altcontactphone' %]
187 [% UNLESS noaltcontactphone %]
189 [% IF ( mandatoryaltcontactphone ) %]
190 <label for="altcontactphone" class="required">
192 <label for="altcontactphone">
195 <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
196 [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]