View | Details | Raw Unified | Return to bug 25070
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc (-126 lines)
Lines 1-126 Link Here
1
        <fieldset class="rows" id="memberentry_altaddress">
2
            <legend id="alt_contact_lgd">Alternate contact</legend><ol>
3
        [% UNLESS noaltcontactsurname %]
4
            <li>
5
                [% IF ( mandatoryaltcontactsurname ) %]
6
                <label for="altcontactsurname" class="required">
7
                [% ELSE %]
8
                <label for="altcontactsurname">
9
                [% END %]
10
                Surname:</label>
11
                    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
12
                [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
13
            </li>
14
        [% END %]
15
        [% UNLESS noaltcontactfirstname %]
16
            <li>
17
                [% IF ( mandatoryaltcontactfirstname ) %]
18
                <label for="altcontactfirstname" class="required">
19
                [% ELSE %]
20
                <label for="altcontactfirstname">
21
                [% END %]
22
                First name:</label>
23
                    <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
24
                [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
25
            </li>
26
        [% END %]
27
        [% UNLESS noaltcontactaddress1 %]
28
            <li>
29
                [% IF ( mandatoryaltcontactaddress1 ) %]
30
                <label for="altcontactaddress1" class="required">
31
                [% ELSE %]
32
                <label for="altcontactaddress1">
33
                [% END %]
34
                Address:</label>
35
                    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
36
                [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
37
            </li>
38
        [% END %]
39
        [% UNLESS noaltcontactaddress2 %]
40
            <li>
41
                [% IF ( mandatoryaltcontactaddress2 ) %]
42
                <label for="altcontactaddress2" class="required">
43
                [% ELSE %]
44
                <label for="altcontactaddress2">
45
                [% END %]
46
                Address 2:</label>
47
                <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
48
                [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
49
            </li>
50
        [% END %]
51
        [% UNLESS noaltcontactzipcode %]
52
                        <li>
53
                            [% IF ( mandatoryaltcontactzipcode ) %]
54
                                <label for="altcontactzipcode" class="required">
55
                                [% ELSE %]
56
                                <label for="altcontactzipcode">
57
                                [% END %]
58
                                ZIP/Postal code:</label>
59
                    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
60
                                [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
61
                        </li>
62
        [% END %]
63
        [% UNLESS noaltcontactaddress3 %]
64
            <li>
65
                [% IF ( mandatoryaltcontactaddress3 ) %]
66
                <label for="altcontactaddress3" class="required">
67
                [% ELSE %]
68
                <label for="altcontactaddress3">
69
                [% END %]
70
                City:</label>
71
                <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
72
                [% IF cities.count %]or choose
73
                    <select class="select_city" data-addressfield="altcontact" name="select_city">
74
                        <option value="|||"></option>
75
                        [% FOREACH c IN cities %]
76
                            [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
77
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
78
                            [% ELSE %]
79
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
80
                            [% END %]
81
                                [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
82
                            </option>
83
                        [% END %]
84
                    </select>
85
                [% END %]
86
                [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
87
            </li>
88
        [% END %]
89
        [% UNLESS noaltcontactstate %]
90
            <li>
91
                [% IF ( mandatoryaltcontactstate ) %]
92
                <label for="altcontactstate" class="required">
93
                [% ELSE %]
94
                <label for="altcontactstate">
95
                [% END %]
96
                State:</label>
97
                <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
98
                [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
99
            </li>
100
        [% END %]
101
        [% UNLESS noaltcontactcountry %]
102
            <li>
103
                [% IF ( mandatoryaltcontactcountry ) %]
104
                <label for="altcontactcountry" class="required">
105
                [% ELSE %]
106
                <label for="altcontactcountry">
107
                [% END %]
108
                Country:</label>
109
                    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
110
                [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
111
            </li>
112
        [% END %]
113
        [% UNLESS noaltcontactphone %]
114
            <li>
115
                [% IF ( mandatoryaltcontactphone ) %]
116
                <label for="altcontactphone" class="required">
117
                [% ELSE %]
118
                <label for="altcontactphone">
119
                [% END %]
120
                Phone:</label>
121
                    <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
122
                [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
123
            </li>
124
        [% END %]
125
            </ol>
126
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-fr.inc (-126 lines)
Lines 1-126 Link Here
1
<fieldset class="rows" id="memberentry_altaddress">
2
    <legend id="alt_contact_lgd">Alternate contact</legend><ol>
3
[% UNLESS noaltcontactsurname %]
4
    <li>
5
    [% IF ( mandatoryaltcontactsurname ) %]
6
        <label for="altcontactsurname" class="required">
7
    [% ELSE %]
8
        <label for="altcontactsurname">
9
    [% END %]
10
    Surname:</label>
11
    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
12
    [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
13
    </li>
14
[% END %]
15
[% UNLESS noaltcontactfirstname %]
16
    <li>
17
    [% IF ( mandatoryaltcontactfirstname ) %]
18
        <label for="altcontactfirstname" class="required">
19
    [% ELSE %]
20
        <label for="altcontactfirstname">
21
    [% END %]
22
        First name:</label>
23
        <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
24
    [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
25
    </li>
26
[% END %]
27
[% UNLESS noaltcontactaddress1 %]
28
    <li>
29
    [% IF ( mandatoryaltcontactaddress1 ) %]
30
        <label for="altcontactaddress1" class="required">
31
    [% ELSE %]
32
        <label for="altcontactaddress1">
33
    [% END %]
34
    Address:</label>
35
    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
36
    [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
37
    </li>
38
[% END %]
39
[% UNLESS noaltcontactaddress2 %]
40
    <li>
41
    [% IF ( mandatoryaltcontactaddress2 ) %]
42
        <label for="altcontactaddress2" class="required">
43
    [% ELSE %]
44
        <label for="altcontactaddress2">
45
    [% END %]
46
    Address 2:</label>
47
    <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
48
    [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
49
    </li>
50
[% END %]
51
[% UNLESS noaltcontactzipcode %]
52
    <li>
53
    [% IF ( mandatoryaltcontactzipcode ) %]
54
        <label for="altcontactzipcode" class="required">
55
    [% ELSE %]
56
        <label for="altcontactzipcode">
57
    [% END %]
58
    ZIP/Postal code:</label>
59
    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
60
    [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
61
    </li>
62
[% END %]
63
[% UNLESS noaltcontactaddress3 %]
64
    <li>
65
    [% IF ( mandatoryaltcontactaddress3 ) %]
66
        <label for="altcontactcity" class="required">
67
    [% ELSE %]
68
        <label for="altcontactcity">
69
    [% END %]
70
    City:</label>
71
    <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
72
    [% IF cities.count %]or choose
73
        <select class="select_city" data-addressfield="altcontact" name="select_city">
74
            <option value="|||"></option>
75
            [% FOREACH c IN cities %]
76
                [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
77
                <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
78
                [% ELSE %]
79
                <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
80
                [% END %]
81
                    [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
82
                </option>
83
            [% END %]
84
        </select>
85
    [% END %]
86
    [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
87
    </li>
88
[% END %]
89
[% UNLESS noaltcontactstate %]
90
    <li>
91
    [% IF ( mandatoryaltcontactstate ) %]
92
        <label for="altcontactstate" class="required">
93
    [% ELSE %]
94
        <label for="altcontactstate">
95
    [% END %]
96
    State:</label>
97
    <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
98
    [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
99
    </li>
100
[% END %]
101
[% UNLESS noaltcontactcountry %]
102
    <li>
103
    [% IF ( mandatoryaltcontactcountry ) %]
104
        <label for="altcontactcountry" class="required">
105
    [% ELSE %]
106
        <label for="altcontactcountry">
107
    [% END %]
108
    Country:</label>
109
    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
110
    [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
111
</li>
112
[% END %]
113
[% UNLESS noaltcontactphone %]
114
    <li>
115
    [% IF ( mandatoryaltcontactphone ) %]
116
        <label for="altcontactphone" class="required">
117
    [% ELSE %]
118
        <label for="altcontactphone">
119
    [% END %]
120
    Phone:</label>
121
    <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
122
    [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
123
    </li>
124
[% END %]
125
</ol>
126
</fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc (-126 lines)
Lines 1-126 Link Here
1
        <fieldset class="rows" id="memberentry_altaddress">
2
            <legend id="alt_contact_lgd">Alternate contact</legend><ol>
3
        [% UNLESS noaltcontactsurname %]
4
            <li>
5
                [% IF ( mandatoryaltcontactsurname ) %]
6
                <label for="altcontactsurname" class="required">
7
                [% ELSE %]
8
                <label for="altcontactsurname">
9
                [% END %]
10
                Surname:</label>
11
                    <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname | html %]" />
12
                [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
13
            </li>
14
        [% END %]
15
        [% UNLESS noaltcontactfirstname %]
16
            <li>
17
                [% IF ( mandatoryaltcontactfirstname ) %]
18
                <label for="altcontactfirstname" class="required">
19
                [% ELSE %]
20
                <label for="altcontactfirstname">
21
                [% END %]
22
                First name:</label>
23
                    <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname | html %]" />
24
                [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
25
            </li>
26
        [% END %]
27
        [% UNLESS noaltcontactaddress1 %]
28
            <li>
29
                [% IF ( mandatoryaltcontactaddress1 ) %]
30
                <label for="altcontactaddress1" class="required">
31
                [% ELSE %]
32
                <label for="altcontactaddress1">
33
                [% END %]
34
                Address:</label>
35
                    <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 | html %]" size="40" />
36
                [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
37
            </li>
38
        [% END %]
39
        [% UNLESS noaltcontactaddress2 %]
40
            <li>
41
                [% IF ( mandatoryaltcontactaddress2 ) %]
42
                <label for="altcontactaddress2" class="required">
43
                [% ELSE %]
44
                <label for="altcontactaddress2">
45
                [% END %]
46
                Address 2:</label>
47
                <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 | html %]" size="40" />
48
                [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
49
            </li>
50
        [% END %]
51
        [% UNLESS noaltcontactaddress3 %]
52
            <li>
53
                [% IF ( mandatoryaltcontactaddress3 ) %]
54
                <label for="altcontactcity" class="required">
55
                [% ELSE %]
56
                <label for="altcontactcity">
57
                [% END %]
58
                City:</label>
59
                <input type="text" name="altcontactaddress3" id="altcontactcity" value="[% patron.altcontactaddress3 | html %]" size="20" />
60
                [% IF cities.count %]or choose
61
                    <select class="select_city" data-addressfield="altcontact" name="select_city">
62
                        <option value="|||"></option>
63
                        [% FOREACH c IN cities %]
64
                            [% IF c.city_name == patron.altcontactaddress3 && c.city_state == patron.altcontactstate && c.city_zipcode == patron.altcontactzipcode %]
65
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]" selected="selected">
66
                            [% ELSE %]
67
                            <option value="[% c.city_zipcode | html %]|[% c.city_name | html %]|[% c.city_state | html %]|[% c.city_country | html %]">
68
                            [% END %]
69
                                [% c.city_name | html %] [% c.city_state | html %] [% c.city_zipcode | html %]
70
                            </option>
71
                        [% END %]
72
                    </select>
73
                [% END %]
74
                [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
75
            </li>
76
        [% END %]
77
        [% UNLESS noaltcontactstate %]
78
            <li>
79
                [% IF ( mandatoryaltcontactstate ) %]
80
                <label for="altcontactstate" class="required">
81
                [% ELSE %]
82
                <label for="altcontactstate">
83
                [% END %]
84
                State:</label>
85
                <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate | html %]" size="20" />
86
                [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
87
            </li>
88
        [% END %]
89
        [% UNLESS noaltcontactzipcode %]
90
            <li>
91
                [% IF ( mandatoryaltcontactzipcode ) %]
92
                <label for="altcontactzipcode" class="required">
93
                [% ELSE %]
94
                <label for="altcontactzipcode">
95
                [% END %]
96
                ZIP/Postal code:</label>
97
                    <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode | html %]" size="5" />
98
                [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
99
            </li>
100
        [% END %]
101
        [% UNLESS noaltcontactcountry %]
102
            <li>
103
                [% IF ( mandatoryaltcontactcountry ) %]
104
                <label for="altcontactcountry" class="required">
105
                [% ELSE %]
106
                <label for="altcontactcountry">
107
                [% END %]
108
                Country:</label>
109
                    <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry | html %]" size="20" />
110
                [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
111
            </li>
112
        [% END %]
113
        [% UNLESS noaltcontactphone %]
114
            <li>
115
                [% IF ( mandatoryaltcontactphone ) %]
116
                <label for="altcontactphone" class="required">
117
                [% ELSE %]
118
                <label for="altcontactphone">
119
                [% END %]
120
                Phone:</label>
121
                    <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone | html %]" />
122
                [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
123
            </li>
124
        [% END %]
125
            </ol>
126
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc (+198 lines)
Line 0 Link Here
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-de' %]
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-de' %]
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 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-6 / +2 lines)
Lines 6-11 Link Here
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% USE Branches %]
7
[% USE Branches %]
8
[% PROCESS 'member-alt-address-style.inc' %]
8
[% PROCESS 'member-alt-address-style.inc' %]
9
[% PROCESS 'member-alt-contact-style.inc' %]
9
[% SET footerjs = 1 %]
10
[% SET footerjs = 1 %]
10
[% INCLUDE 'doc-head-open.inc' %]
11
[% INCLUDE 'doc-head-open.inc' %]
11
    <title>Koha &rsaquo; Patrons &rsaquo;
12
    <title>Koha &rsaquo; Patrons &rsaquo;
Lines 746-756 legend:hover { Link Here
746
747
747
                            [% IF ( step_2 ) %]
748
                            [% IF ( step_2 ) %]
748
                                [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
749
                                [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
749
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
750
                                    [% PROCESS 'alt-contact-style' %]
750
                                        [% INCLUDE "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
751
                                    [% ELSE %]
752
                                        [% INCLUDE 'member-alt-contact-style-us.inc' %]
753
                                    [% END %]
754
                                [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
751
                                [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
755
                            [% END # /IF ( step_2 ) %]
752
                            [% END # /IF ( step_2 ) %]
756
753
757
- 

Return to bug 25070