Line 0
Link Here
|
|
|
1 |
[% USE Koha %] |
2 |
[% BLOCK 'main-address-style' %] |
3 |
<fieldset class="rows" id="memberentry_mainaddress"> |
4 |
<legend id="main_address_lgd">Main address</legend> |
5 |
<ol> |
6 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
7 |
[% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] |
8 |
[% ELSE %] |
9 |
[% PROCESS 'member-main-address-style-us' %] |
10 |
[% END %] |
11 |
</ol> |
12 |
</fieldset> |
13 |
[% END %] |
14 |
|
15 |
[% BLOCK 'member-main-address-style-us' %] |
16 |
[% PROCESS 'address-style_streetnumber' %] |
17 |
[% PROCESS 'address-style_roadtypes' %] |
18 |
[% PROCESS 'address-style_address' %] |
19 |
[% PROCESS 'address-style_address2' %] |
20 |
[% PROCESS 'address-style_city' %] |
21 |
[% PROCESS 'address-style_state' %] |
22 |
[% PROCESS 'address-style_zipcode' %] |
23 |
[% PROCESS 'address-style_country' %] |
24 |
[% END %] |
25 |
|
26 |
[% BLOCK 'member-main-address-style-de' %] |
27 |
[% PROCESS 'address-style_roadtypes' %] |
28 |
[% PROCESS 'address-style_address' %] |
29 |
[% PROCESS 'address-style_streetnumber' %] |
30 |
[% PROCESS 'address-style_address2' %] |
31 |
[% PROCESS 'address-style_zipcode' %] |
32 |
[% PROCESS 'address-style_city' %] |
33 |
[% PROCESS 'address-style_state' %] |
34 |
[% PROCESS 'address-style_country' %] |
35 |
[% END %] |
36 |
|
37 |
[% BLOCK 'member-main-address-style-fr' %] |
38 |
[% PROCESS 'address-style_streetnumber' %] |
39 |
[% PROCESS 'address-style_roadtypes' %] |
40 |
[% PROCESS 'address-style_address' %] |
41 |
[% PROCESS 'address-style_address2' %] |
42 |
[% PROCESS 'address-style_zipcode' %] |
43 |
[% PROCESS 'address-style_city' %] |
44 |
[% PROCESS 'address-style_state' %] |
45 |
[% PROCESS 'address-style_country' %] |
46 |
[% END %] |
47 |
|
48 |
[% BLOCK 'address-style_roadtypes' %] |
49 |
[% IF roadtypes %] |
50 |
<li> |
51 |
[% IF ( mandatorystreetype ) %] |
52 |
<label for="streetype" class="required"> |
53 |
[% ELSE %] |
54 |
<label for="streetype"> |
55 |
[% END %] |
56 |
Street type: </label> |
57 |
<select name="streetype"> |
58 |
<option value=""></option> |
59 |
[% FOR roadtype IN roadtypes %] |
60 |
[% IF roadtype.authorised_value == patron.streetype %] |
61 |
<option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option> |
62 |
[% ELSE %] |
63 |
<option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option> |
64 |
[% END %] |
65 |
[% END %] |
66 |
</select> |
67 |
[% IF ( mandatorystreetype ) %]<span class="required">Required</span>[% END %] |
68 |
</li> |
69 |
[% END %] |
70 |
[% END %] |
71 |
|
72 |
[% BLOCK 'address-style_address' %] |
73 |
[% UNLESS noaddress %] |
74 |
<li> |
75 |
[% IF ( mandatoryaddress ) %] |
76 |
<label for="address" class="required"> |
77 |
[% ELSE %] |
78 |
<label for="address"> |
79 |
[% END %] |
80 |
Address: </label> |
81 |
<input type="text" id="address" name="address" size="40" value="[% patron.address | html %]" /> |
82 |
[% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] |
83 |
</li> |
84 |
[% END %] |
85 |
[% END %] |
86 |
|
87 |
[% BLOCK 'address-style_streetnumber' %] |
88 |
[% UNLESS nostreetnumber %] |
89 |
<li> |
90 |
[% IF ( mandatorystreetnumber ) %] |
91 |
<label for="streetnumber" class="required"> |
92 |
[% ELSE %] |
93 |
<label for="streetnumber"> |
94 |
[% END %] |
95 |
Street Number: </label> |
96 |
<input type="text" id="streetnumber" name="streetnumber" size="5" maxlength="10" value="[% patron.streetnumber | html %]" /> |
97 |
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] |
98 |
</li> |
99 |
[% END %] |
100 |
[% END %] |
101 |
|
102 |
[% BLOCK 'address-style_address2' %] |
103 |
[% UNLESS noaddress2 %] |
104 |
<li> |
105 |
[% IF ( mandatoryaddress2 ) %] |
106 |
<label for="address2" class="required"> |
107 |
[% ELSE %] |
108 |
<label for="address2"> |
109 |
[% END %] |
110 |
Address 2: </label> |
111 |
<input type="text" id="address2" name="address2" size="40" value="[% patron.address2 | html %]" /> |
112 |
[% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] |
113 |
</li> |
114 |
[% END %] |
115 |
[% END %] |
116 |
|
117 |
[% BLOCK 'address-style_zipcode' %] |
118 |
[% UNLESS nozipcode %] |
119 |
<li> |
120 |
[% IF ( mandatoryzipcode ) %] |
121 |
<label for="zipcode" class="required"> |
122 |
[% ELSE %] |
123 |
<label for="zipcode"> |
124 |
[% END %] |
125 |
ZIP/Postal code: </label> |
126 |
<input type="text" id="zipcode" name="zipcode" maxlength="10" size="10" value="[% patron.zipcode | html %]" /> |
127 |
[% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] |
128 |
</li> |
129 |
[% END %] |
130 |
[% END %] |
131 |
|
132 |
[% BLOCK 'address-style_city' %] |
133 |
[% UNLESS nocity %] |
134 |
<li> |
135 |
[% IF ( mandatorycity ) %] |
136 |
<label for="city" class="required" > |
137 |
[% ELSE %] |
138 |
<label for="city"> |
139 |
[% END %] |
140 |
City: </label> |
141 |
<input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" /> |
142 |
[% IF cities.count %] |
143 |
or choose |
144 |
<select class="select_city" data_addressfield="" name="select_city"> |
145 |
<option value="|||"></option> |
146 |
[% FOREACH c IN cities %] |
147 |
[% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %] |
148 |
<option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected"> |
149 |
[% ELSE %] |
150 |
<option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]"> |
151 |
[% END %] |
152 |
[% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %] |
153 |
</option> |
154 |
[% END %] |
155 |
</select> |
156 |
[% END %] |
157 |
[% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %] |
158 |
</li> |
159 |
[% END %] |
160 |
[% END %] |
161 |
|
162 |
[% BLOCK 'address-style_state' %] |
163 |
[% UNLESS nostate %] |
164 |
<li> |
165 |
[% IF ( mandatorystate ) %] |
166 |
<label for="state" class="required" > |
167 |
[% ELSE %] |
168 |
<label for="state"> |
169 |
[% END %] |
170 |
State: </label> |
171 |
<input type="text" id="state" name="state" size="20" value="[% patron.state | html %]" /> |
172 |
[% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] |
173 |
</li> |
174 |
[% END %] |
175 |
[% END %] |
176 |
|
177 |
[% BLOCK 'address-style_country' %] |
178 |
[% UNLESS nocountry %] |
179 |
<li> |
180 |
[% IF ( mandatorycountry ) %] |
181 |
<label for="country" class="required"> |
182 |
[% ELSE %] |
183 |
<label for="country"> |
184 |
[% END %] |
185 |
Country: </label> |
186 |
<input type="text" id="country" name="country" size="20" value="[% patron.country | html %]" /> |
187 |
[% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] |
188 |
</li> |
189 |
[% END %] |
190 |
[% END %] |