Bug 3766: Cities/Towns only on one address
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / includes / member-main-address-style-fr.inc
1 <fieldset class="rows" id="memberentry_mainaddress">
2     <legend id="main_address_lgd">Main address</legend><ol>
3 [% UNLESS nostreettype %]
4     [% UNLESS nostreetnumber %]
5         <li>
6             [% IF ( mandatorystreetnumber ) %]
7                 <label for="streetnumber" class="required">
8             [% ELSE %]
9                 <label for="streetnumber">
10             [% END %]
11                 Street number: </label>
12                 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber | html %]" />
13             [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
14         </li>
15     [% END %]
16
17     [% IF roadtypes %]
18         <li>
19         [% IF ( mandatorystreettype ) %]
20             <label for="streettype" class="required">
21         [% ELSE %]
22             <label for="streettype">
23         [% END %]
24         Street type: </label>
25         <select name="streettype">
26            <option value=""></option>
27         [% FOR roadtype IN roadtypes %]
28             [% IF roadtype.authorised_value == patron.streettype %]
29                 <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
30             [% ELSE %]
31                 <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
32             [% END %]
33         [% END %]
34         </select>
35         [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
36         </li>
37     [% END %]
38 [% END %]
39 [% UNLESS noaddress %]
40     <li>
41     [% IF ( mandatoryaddress ) %]
42         <label for="address" class="required">
43     [% ELSE %]
44         <label for="address">
45     [% END %]
46     Address: </label>
47         <input type="text" id="address" name="address" size="35" value="[% patron.address | html %]" />
48     [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
49       </li>
50 [% END %]
51 [% UNLESS noaddress2 %]
52     <li>
53     [% IF ( mandatoryaddress2 ) %]
54         <label for="address2" class="required">
55     [% ELSE %]
56         <label for="address2">
57     [% END %]
58         Address 2: </label>
59         <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 | html %]" />
60     [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
61     </li>
62 [% END %]
63 [% UNLESS nozipcode %]
64     <li>
65     [% IF ( mandatoryzipcode ) %]
66         <label for="zipcode" class="required">
67     [% ELSE %]
68         <label for="zipcode">
69     [% END %]
70     ZIP/Postal code: </label>
71     <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode | html %]" />
72     [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
73     </li>
74 [% END %]
75 [% UNLESS nocity %]
76     <li>
77     [% IF ( mandatorycity ) %]
78     <label for="city" class="required">
79     [% ELSE %]
80         <label for="city">
81     [% END %]
82     City: </label>
83     <input type="text" id="city" name="city" size="20" value="[% patron.city | html %]" />
84     [% IF cities.count %]or choose
85         <select class="select_city" data-addressfield="" name="select_city">
86             <option value="|||"></option>
87         [% FOREACH c IN cities %]
88             [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %]
89                 <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
90             [% ELSE %]
91                  <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
92             [% END %]
93                 [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
94             </option>
95         [% END %]
96         </select>
97     [% END %]
98     [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
99     </li>
100 [% END %]
101 [% UNLESS nostate %]
102     <li>
103     [% IF ( mandatorystate ) %]
104         <label for="state" class="required">
105     [% ELSE %]
106         <label for="state">
107     [% END %]
108         State: </label>
109         <input type="text" name="state" id="state" size="20" value="[% patron.state | html %]" />
110     [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
111     </li>
112 [% END %]
113 [% UNLESS nocountry %]
114     <li>
115     [% IF ( mandatorycountry ) %]
116         <label for="country" class="required">
117     [% ELSE %]
118       <label for="country">
119     [% END %]
120     Country: </label>
121       <input type="text" name="country" id="country" size="20" value="[% patron.country | html %]" />
122     [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
123     </li>
124 [% END %]
125 </ol>
126 </fieldset>