Bug 26431: Update NewsToolEditor system preference description
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / member-alt-contact-style.inc
1 [% USE Koha %]
2 [% BLOCK 'alt-contact-style' %]
3     <fieldset class="rows" id="memberentry_altaddress">
4         <legend id="alt_contact_lgd">Alternate contact</legend><ol>
5         <ol>
6             [% IF Koha.Preference( 'AddressFormat' ) %]
7                 [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %]
8             [% ELSE %]
9                 [% PROCESS 'member-alt-contact-style-us' %]
10             [% END %]
11         </ol>
12     </fieldset>
13 [% END %]
14
15 [% BLOCK 'member-alt-contact-style-us' %]
16     [% PROCESS 'alt-contact-style_altcontactsurname' %]
17     [% PROCESS 'alt-contact-style_altcontactfirstname' %]
18     [% PROCESS 'alt-contact-style_altcontactaddress1' %]
19     [% PROCESS 'alt-contact-style_altcontactaddress2' %]
20     [% PROCESS 'alt-contact-style_altcontactaddress3' %]
21     [% PROCESS 'alt-contact-style_altcontactstate' %]
22     [% PROCESS 'alt-contact-style_altcontactzipcode' %]
23     [% PROCESS 'alt-contact-style_altcontactcountry' %]
24     [% PROCESS 'alt-contact-style_altcontactphone' %]
25 [% END %]
26
27 [% BLOCK 'member-alt-contact-style-de' %]
28     [% PROCESS 'alt-contact-style_altcontactsurname' %]
29     [% PROCESS 'alt-contact-style_altcontactfirstname' %]
30     [% PROCESS 'alt-contact-style_altcontactaddress1' %]
31     [% PROCESS 'alt-contact-style_altcontactaddress2' %]
32     [% PROCESS 'alt-contact-style_altcontactzipcode' %]
33     [% PROCESS 'alt-contact-style_altcontactaddress3' %]
34     [% PROCESS 'alt-contact-style_altcontactstate' %]
35     [% PROCESS 'alt-contact-style_altcontactcountry' %]
36     [% PROCESS 'alt-contact-style_altcontactphone' %]
37 [% END %]
38
39 [% BLOCK 'member-alt-contact-style-fr' %]
40     [% PROCESS 'alt-contact-style_altcontactsurname' %]
41     [% PROCESS 'alt-contact-style_altcontactfirstname' %]
42     [% PROCESS 'alt-contact-style_altcontactaddress1' %]
43     [% PROCESS 'alt-contact-style_altcontactaddress2' %]
44     [% PROCESS 'alt-contact-style_altcontactzipcode' %]
45     [% PROCESS 'alt-contact-style_altcontactaddress3' %]
46     [% PROCESS 'alt-contact-style_altcontactstate' %]
47     [% PROCESS 'alt-contact-style_altcontactcountry' %]
48     [% PROCESS 'alt-contact-style_altcontactphone' %]
49 [% END %]
50
51 [% BLOCK 'alt-contact-style_altcontactsurname' %]
52     [% UNLESS noaltcontactsurname %]
53         <li>
54             [% IF ( mandatoryaltcontactsurname ) %]
55                 <label for="altcontactsurname" class="required">
56             [% ELSE %]
57                 <label for="altcontactsurname">
58             [% END %]
59             Surname:</label>
60             <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
61             [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
62         </li>
63     [% END %]
64 [% END %]
65
66 [% BLOCK 'alt-contact-style_altcontactfirstname' %]
67     [% UNLESS noaltcontactfirstname %]
68         <li>
69             [% IF ( mandatoryaltcontactfirstname ) %]
70                 <label for="altcontactfirstname" class="required">
71             [% ELSE %]
72                 <label for="altcontactfirstname">
73             [% END %]
74             First name:</label>
75             <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
76             [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
77         </li>
78     [% END %]
79 [% END %]
80
81 [% BLOCK 'alt-contact-style_altcontactaddress1' %]
82     [% UNLESS noaltcontactaddress1 %]
83         <li>
84             [% IF ( mandatoryaltcontactaddress1 ) %]
85                 <label for="altcontactaddress1" class="required">
86             [% ELSE %]
87                 <label for="altcontactaddress1">
88             [% END %]
89             Address:</label>
90             <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
91             [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
92         </li>
93     [% END %]
94 [% END %]
95
96 [% BLOCK 'alt-contact-style_altcontactaddress2' %]
97     [% UNLESS noaltcontactaddress2 %]
98         <li>
99             [% IF ( mandatoryaltcontactaddress2 ) %]
100                 <label for="altcontactaddress2" class="required">
101             [% ELSE %]
102                 <label for="altcontactaddress2">
103             [% END %]
104             Address 2:</label>
105             <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
106             [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
107         </li>
108     [% END %]
109 [% END %]
110
111 [% BLOCK 'alt-contact-style_altcontactzipcode' %]
112     [% UNLESS noaltcontactzipcode %]
113         <li>
114             [% IF ( mandatoryaltcontactzipcode ) %]
115                 <label for="altcontactzipcode" class="required">
116             [% ELSE %]
117                 <label for="altcontactzipcode">
118             [% END %]
119             ZIP/Postal code:</label>
120 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
121             [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
122         </li>
123     [% END %]
124 [% END %]
125
126 [% BLOCK 'alt-contact-style_altcontactaddress3' %]
127     [% UNLESS noaltcontactaddress3 %]
128         <li>
129             [% IF ( mandatoryaltcontactaddress3 ) %]
130                 <label for="altcontactaddress3" class="required">
131             [% ELSE %]
132                 <label for="altcontactaddress3">
133             [% END %]
134             City:</label>
135             <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
136             [% IF cities.count %]or choose
137                 <select class="select_city" data-addressfield="altcontact" name="select_city">
138                     <option value="|||"></option>
139                     [% FOREACH c IN cities %]
140                         [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
141                         <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
142                         [% ELSE %]
143                         <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
144                         [% END %]
145                             [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
146                         </option>
147                     [% END %]
148                 </select>
149             [% END %]
150             [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
151         </li>
152     [% END %]
153 [% END %]
154
155 [% BLOCK 'alt-contact-style_altcontactstate' %]
156     [% UNLESS noaltcontactstate %]
157         <li>
158             [% IF ( mandatoryaltcontactstate ) %]
159                 <label for="altcontactstate" class="required">
160             [% ELSE %]
161                 <label for="altcontactstate">
162             [% END %]
163             State:</label>
164             <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
165             [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
166         </li>
167     [% END %]
168 [% END %]
169
170 [% BLOCK 'alt-contact-style_altcontactcountry' %]
171     [% UNLESS noaltcontactcountry %]
172         <li>
173             [% IF ( mandatoryaltcontactcountry ) %]
174                 <label for="altcontactcountry" class="required">
175             [% ELSE %]
176                 <label for="altcontactcountry">
177             [% END %]
178             Country:</label>
179             <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
180             [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
181         </li>
182     [% END %]
183 [% END %]
184
185 [% BLOCK 'alt-contact-style_altcontactphone' %]
186     [% UNLESS noaltcontactphone %]
187         <li>
188             [% IF ( mandatoryaltcontactphone ) %]
189                 <label for="altcontactphone" class="required">
190             [% ELSE %]
191                 <label for="altcontactphone">
192             [% END %]
193             Phone:</label>
194             <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
195             [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
196         </li>
197     [% END %]
198 [% END %]