1 <fieldset class="rows" id="memberentry_mainaddress">
2 <legend id="main_address_lgd">Main address</legend><ol>
3 [% UNLESS nostreetnumber %]
5 [% IF ( mandatorystreetnumber ) %]
6 <label for="streetnumber" class="required">
8 <label for="streetnumber">
10 Street number: </label>
11 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber %]" />
12 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
15 [% UNLESS nostreettype %]
18 [% IF ( mandatorystreettype ) %]
19 <label for="streettype" class="required">
21 <label for="streettype">
24 <select name="streettype">
25 <option value=""></option>
26 [% FOR roadtype IN roadtypes %]
27 [% IF roadtype.authorised_value == patron.streettype %]
28 <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option>
30 <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option>
34 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
38 [% UNLESS noaddress %]
40 [% IF ( mandatoryaddress ) %]
41 <label for="address" class="required">
46 <input type="text" id="address" name="address" size="35" value="[% patron.address %]" />
47 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
50 [% UNLESS noaddress2 %]
52 [% IF ( mandatoryaddress2 ) %]
53 <label for="address2" class="required">
55 <label for="address2">
58 <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 %]" />
59 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
64 [% IF ( mandatorycity ) %]
65 <label for="city" class="required">
70 <input type="text" id="city" name="city" size="20" value="[% patron.city %]" />
71 [% IF cities.count %]or choose
72 <select id="select_city" name="select_city">
73 <option value="|||"></option>
74 [% FOREACH c IN cities %]
75 [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %]
76 <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected">
78 <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]">
80 [% c.city_name %] [% c.city_state %] [% c.city_zipcode %]
85 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
90 [% IF ( mandatorystate ) %]
91 <label for="state" class="required">
96 <input type="text" name="state" id="state" size="20" value="[% patron.state %]" />
97 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
100 [% UNLESS nozipcode %]
102 [% IF ( mandatoryzipcode ) %]
103 <label for="zipcode" class="required">
105 <label for="zipcode">
107 ZIP/Postal code: </label>
108 <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode %]" />
109 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
112 [% UNLESS nocountry %]
114 [% IF ( mandatorycountry ) %]
115 <label for="country" class="required">
117 <label for="country">
120 <input type="text" name="country" id="country" size="20" value="[% patron.country %]" />
121 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]