1 <fieldset class="rows" id="memberentry_mainaddress">
2 <legend id="main_address_lgd">Main address</legend><ol>
3 [% UNLESS nostreettype %]
4 [% UNLESS nostreetnumber %]
6 [% IF ( mandatorystreetnumber ) %]
7 <label for="streetnumber" class="required">
9 <label for="streetnumber">
11 Street number: </label>
12 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber | html %]" />
13 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
19 [% IF ( mandatorystreettype ) %]
20 <label for="streettype" class="required">
22 <label for="streettype">
25 <select name="streettype">
26 <option value=""></option>
27 [% FOR roadtype IN roadtypes %]
28 [% IF roadtype.authorised_value == patron.streettype %]
29 <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
31 <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
35 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
39 [% UNLESS noaddress %]
41 [% IF ( mandatoryaddress ) %]
42 <label for="address" class="required">
47 <input type="text" id="address" name="address" size="35" value="[% patron.address | html %]" />
48 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
51 [% UNLESS noaddress2 %]
53 [% IF ( mandatoryaddress2 ) %]
54 <label for="address2" class="required">
56 <label for="address2">
59 <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 | html %]" />
60 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
63 [% UNLESS nozipcode %]
65 [% IF ( mandatoryzipcode ) %]
66 <label for="zipcode" class="required">
70 ZIP/Postal code: </label>
71 <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode | html %]" />
72 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
77 [% IF ( mandatorycity ) %]
78 <label for="city" class="required">
83 <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" />
84 [% IF cities.count %]or choose
85 <select class="select_city" data-addressfield="" name="select_city">
86 <option value="|||"></option>
87 [% FOREACH c IN cities %]
88 [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %]
89 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
91 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
93 [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
98 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
103 [% IF ( mandatorystate ) %]
104 <label for="state" class="required">
109 <input type="text" name="state" id="state" size="20" value="[% patron.state | html %]" />
110 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
113 [% UNLESS nocountry %]
115 [% IF ( mandatorycountry ) %]
116 <label for="country" class="required">
118 <label for="country">
121 <input type="text" name="country" id="country" size="20" value="[% patron.country | html %]" />
122 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]