1 <fieldset class="rows" id="memberentry_mainaddress">
2 <legend id="main_address_lgd">Main address</legend><ol>
3 [% UNLESS nostreettype %]
6 [% IF ( mandatorystreettype ) %]
7 <label for="streettype" class="required">
9 <label for="streettype">
12 <select name="streettype">
13 <option value=""></option>
14 [% FOR roadtype IN roadtypes %]
15 [% IF roadtype.authorised_value == streettype %]
16 <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option>
18 <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option>
22 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
26 [% UNLESS noaddress %]
28 [% IF ( mandatoryaddress ) %]
29 <label for="address" class="required">
34 <input type="text" id="address" name="address" size="35" value="[% address %]" />
35 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
38 [% UNLESS nostreetnumber %]
40 [% IF ( mandatorystreetnumber ) %]
41 <label for="streetnumber" class="required">
43 <label for="streetnumber">
45 Street number: </label>
46 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
47 [% IF ( mandatorystreetnumber ) %]<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="[% address2 %]" />
59 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
62 [% UNLESS nozipcode %]
64 [% IF ( mandatoryzipcode ) %]
65 <label for="zipcode" class="required">
69 ZIP/Postal code: </label>
70 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
71 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
76 [% IF ( mandatorycity ) %]
77 <label for="city" class="required">
82 <input type="text" id="city" name="city" size="20" value="[% city %]" />
83 [% IF cities.count %]or choose
84 <select id="select_city" name="select_city">
85 <option value="|||"></option>
86 [% FOREACH c IN cities %]
87 [% IF c.city_name == city && c.city_state == state && c.city_zipcode == zipcode %]
88 <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected">
90 <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]">
92 [% c.city_name %] [% c.city_state %] [% c.city_zipcode %]
97 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
102 [% IF ( mandatorystate ) %]
103 <label for="state" class="required">
108 <input type="text" name="state" id="state" size="20" value="[% state %]" />
109 [% IF ( mandatorystate ) %]<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="[% country %]" />
121 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]