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