|
Lines 8-14
Link Here
|
| 8 |
<label for="streetnumber"> |
8 |
<label for="streetnumber"> |
| 9 |
[% END %] |
9 |
[% END %] |
| 10 |
Street number: </label> |
10 |
Street number: </label> |
| 11 |
<input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber %]" /> |
11 |
<input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" /> |
| 12 |
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] |
12 |
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] |
| 13 |
</li> |
13 |
</li> |
| 14 |
[% END %] |
14 |
[% END %] |
|
Lines 24-30
Link Here
|
| 24 |
<select name="streettype"> |
24 |
<select name="streettype"> |
| 25 |
<option value=""></option> |
25 |
<option value=""></option> |
| 26 |
[% FOR roadtype IN roadtypes %] |
26 |
[% FOR roadtype IN roadtypes %] |
| 27 |
[% IF roadtype.authorised_value == patron.streettype %] |
27 |
[% IF roadtype.authorised_value == streettype %] |
| 28 |
<option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> |
28 |
<option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> |
| 29 |
[% ELSE %] |
29 |
[% ELSE %] |
| 30 |
<option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> |
30 |
<option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> |
|
Lines 43-49
Link Here
|
| 43 |
<label for="address"> |
43 |
<label for="address"> |
| 44 |
[% END %] |
44 |
[% END %] |
| 45 |
Address: </label> |
45 |
Address: </label> |
| 46 |
<input type="text" id="address" name="address" size="35" value="[% patron.address %]" /> |
46 |
<input type="text" id="address" name="address" size="35" value="[% address %]" /> |
| 47 |
[% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] |
47 |
[% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] |
| 48 |
</li> |
48 |
</li> |
| 49 |
[% END %] |
49 |
[% END %] |
|
Lines 55-61
Link Here
|
| 55 |
<label for="address2"> |
55 |
<label for="address2"> |
| 56 |
[% END %] |
56 |
[% END %] |
| 57 |
Address 2: </label> |
57 |
Address 2: </label> |
| 58 |
<input type="text" id="address2" name="address2" size="35" value="[% patron.address2 %]" /> |
58 |
<input type="text" id="address2" name="address2" size="35" value="[% address2 %]" /> |
| 59 |
[% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] |
59 |
[% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] |
| 60 |
</li> |
60 |
</li> |
| 61 |
[% END %] |
61 |
[% END %] |
|
Lines 67-78
Link Here
|
| 67 |
<label for="city"> |
67 |
<label for="city"> |
| 68 |
[% END %] |
68 |
[% END %] |
| 69 |
City: </label> |
69 |
City: </label> |
| 70 |
<input type="text" id="city" name="city" size="20" value="[% patron.city %]" /> |
70 |
<input type="text" id="city" name="city" size="20" value="[% city %]" /> |
| 71 |
[% IF cities.count %]or choose |
71 |
[% IF cities.count %]or choose |
| 72 |
<select id="select_city" name="select_city"> |
72 |
<select id="select_city" name="select_city"> |
| 73 |
<option value="|||"></option> |
73 |
<option value="|||"></option> |
| 74 |
[% FOREACH c IN cities %] |
74 |
[% FOREACH c IN cities %] |
| 75 |
[% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %] |
75 |
[% IF c.city_name == city && c.city_state == state && c.city_zipcode == zipcode %] |
| 76 |
<option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected"> |
76 |
<option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected"> |
| 77 |
[% ELSE %] |
77 |
[% ELSE %] |
| 78 |
<option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]"> |
78 |
<option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]"> |
|
Lines 93-99
Link Here
|
| 93 |
<label for="state"> |
93 |
<label for="state"> |
| 94 |
[% END %] |
94 |
[% END %] |
| 95 |
State: </label> |
95 |
State: </label> |
| 96 |
<input type="text" name="state" id="state" size="20" value="[% patron.state %]" /> |
96 |
<input type="text" name="state" id="state" size="20" value="[% state %]" /> |
| 97 |
[% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] |
97 |
[% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] |
| 98 |
</li> |
98 |
</li> |
| 99 |
[% END %] |
99 |
[% END %] |
|
Lines 105-111
Link Here
|
| 105 |
<label for="zipcode"> |
105 |
<label for="zipcode"> |
| 106 |
[% END %] |
106 |
[% END %] |
| 107 |
ZIP/Postal code: </label> |
107 |
ZIP/Postal code: </label> |
| 108 |
<input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode %]" /> |
108 |
<input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" /> |
| 109 |
[% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] |
109 |
[% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] |
| 110 |
</li> |
110 |
</li> |
| 111 |
[% END %] |
111 |
[% END %] |
|
Lines 117-123
Link Here
|
| 117 |
<label for="country"> |
117 |
<label for="country"> |
| 118 |
[% END %] |
118 |
[% END %] |
| 119 |
Country: </label> |
119 |
Country: </label> |
| 120 |
<input type="text" name="country" id="country" size="20" value="[% patron.country %]" /> |
120 |
<input type="text" name="country" id="country" size="20" value="[% country %]" /> |
| 121 |
[% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] |
121 |
[% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] |
| 122 |
</li> |
122 |
</li> |
| 123 |
[% END %] |
123 |
[% END %] |