Bug 3766: Cities/Towns only on one address
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / includes / member-alt-address-style-de.inc
1         <fieldset class="rows" id="memberentry_address">
2         <legend id="alt_address_lgd">Alternate address</legend><ol>
3
4         [% IF roadtypes %]
5                 <li>
6             [% IF ( mandatoryB_streettype ) %]
7                 <label for="B_streettype" class="required">
8             [% ELSE %]
9                 <label for="B_streettype">
10         [% END %]
11             Street type: </label>
12             <select name="B_streettype">
13             <option value=""></option>
14             [% FOR roadtype IN roadtypes %]
15                 [% IF roadtype.authorised_value == patron.B_streettype %]
16                     <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
17                 [% ELSE %]
18                     <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
19                 [% END %]
20             [% END %]
21             </select>
22             [% IF ( mandatoryB_streettype ) %]<span class="required">Required</span>[% END %]
23             </li>
24         [% END %]
25
26         [% UNLESS noB_address %]
27             <li>
28                 [% IF ( mandatoryB_address ) %]
29                     <label for="B_address" class="required">
30                 [% ELSE %]
31                     <label for="B_address">
32                 [% END %]
33                 Address: </label>
34                     <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address | html %]" />
35       [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
36             </li>
37         [% END %]
38
39         [% UNLESS noB_streetnumber %]
40             <li>
41                 [% IF ( mandatoryB_streetnumber ) %]
42                     <label for="B_streetnumber" class="required">
43                 [% ELSE %]
44                     <label for="B_streetnumber">
45                 [% END %]
46                 Street Number: </label>
47                     <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber | html %]" />
48                 [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %]
49             </li>
50         [% END %]
51
52         [% UNLESS noB_address2 %]
53             <li>
54                 [% IF ( mandatoryB_address2 ) %]
55                     <label for="B_address2" class="required">
56                 [% ELSE %]
57                     <label for="B_address2">
58                 [% END %]
59                 Address 2: </label>
60                     <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 | html %]" />
61       [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
62             </li>
63         [% END %]
64         [% UNLESS noB_zipcode %]
65                         <li>
66                                 [% IF ( mandatoryB_zipcode ) %]
67                                         <label for="B_zipcode" class="required">
68                                 [% ELSE %]
69                                         <label for="B_zipcode">
70                                 [% END %]
71                                 ZIP/Postal code: </label>
72                     <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode | html %]" />
73           [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
74                         </li>
75         [% END %]
76         [% UNLESS noB_city %]
77             <li>
78                 [% IF ( mandatoryB_city ) %]
79                     <label for="B_city" class="required" >
80                 [% ELSE %]
81                     <label for="B_city">
82                 [% END %]
83                 City: </label>
84                 <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city | html %]" />
85                 [% IF cities.count %]or choose
86                     <select class="select_city" data-addressfield="B_" name="select_city">
87                         <option value="|||"></option>
88                         [% FOREACH c IN cities %]
89                             [% IF c.city_name == patron.B_city && c.city_state == patron.B_state && c.city_zipcode == patron.B_zipcode %]
90                             <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
91                             [% ELSE %]
92                             <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
93                             [% END %]
94                                 [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
95                             </option>
96                         [% END %]
97                     </select>
98                 [% END %]
99       [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
100             </li>
101         [% END %]
102         [% UNLESS noB_state %]
103             <li>
104                 [% IF ( mandatoryB_state ) %]
105                     <label for="B_state" class="required" >
106                 [% ELSE %]
107                     <label for="B_state">
108                 [% END %]
109                 State: </label>
110                 <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state | html %]" />
111       [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
112             </li>
113         [% END %]
114         [% UNLESS noB_country %]
115             <li>
116                 [% IF ( mandatoryB_country ) %]
117                     <label for="B_country" class="required">
118                 [% ELSE %]
119                     <label for="B_country">
120                 [% END %]
121                 Country: </label>
122                     <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country | html %]" />
123       [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
124             </li>
125         [% END %]
126         [% UNLESS noB_phone %]
127             <li>
128                 [% IF ( mandatoryB_phone ) %]
129                 <label for="B_phone" class="required">
130                 [% ELSE %]
131                 <label for="B_phone">
132                 [% END %]
133                 Phone: </label>
134                     <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone | html %]" />
135                 [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
136             </li>
137         [% END %]
138         [% UNLESS noB_email %]
139             <li>
140         [% IF ( mandatoryB_email ) %]
141           <label for="B_email" class="required">
142         [% ELSE %]
143           <label for="B_email">
144         [% END %]
145         Email: </label>
146             <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email | html %]" />
147         [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
148         [% END %]
149         [% UNLESS nocontactnote %]
150             <li>
151                 [% IF ( mandatorycontactnote ) %]
152                 <label for="contactnote" class="required">
153                 [% ELSE %]
154                 <label for="contactnote">
155                 [% END %]
156                 Contact note: </label>
157                 <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote | html %]</textarea>
158         [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
159             </li>
160         [% END %]
161             </ol>
162         </fieldset>