Bug 29477: Flatpickr - default to 23:59 for the time part
[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>
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             [% IF cities.count %]
136                 <select class="select_city" data-addressfield="altcontact" name="select_city">
137                     <option value="|||"></option>
138                     [% FOREACH c IN cities %]
139                         [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
140                         <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
141                         [% ELSE %]
142                         <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
143                         [% END %]
144                             [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
145                         </option>
146                     [% END %]
147                 </select>
148                 <span class="hint">or enter</span>
149             [% END %]
150             <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
151             [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
152         </li>
153     [% END %]
154 [% END %]
155
156 [% BLOCK 'alt-contact-style_altcontactstate' %]
157     [% UNLESS noaltcontactstate %]
158         <li>
159             [% IF ( mandatoryaltcontactstate ) %]
160                 <label for="altcontactstate" class="required">
161             [% ELSE %]
162                 <label for="altcontactstate">
163             [% END %]
164             State: </label>
165             <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
166             [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
167         </li>
168     [% END %]
169 [% END %]
170
171 [% BLOCK 'alt-contact-style_altcontactcountry' %]
172     [% UNLESS noaltcontactcountry %]
173         <li>
174             [% IF ( mandatoryaltcontactcountry ) %]
175                 <label for="altcontactcountry" class="required">
176             [% ELSE %]
177                 <label for="altcontactcountry">
178             [% END %]
179             Country: </label>
180             <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
181             [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
182         </li>
183     [% END %]
184 [% END %]
185
186 [% BLOCK 'alt-contact-style_altcontactphone' %]
187     [% UNLESS noaltcontactphone %]
188         <li>
189             [% IF ( mandatoryaltcontactphone ) %]
190                 <label for="altcontactphone" class="required">
191             [% ELSE %]
192                 <label for="altcontactphone">
193             [% END %]
194             Phone: </label>
195             <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
196             [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
197         </li>
198     [% END %]
199 [% END %]