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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (-54 / +55 lines)
Lines 11-67 Link Here
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
12
[% INCLUDE 'patron-search.inc' %]
13
13
14
[%
14
[% BLOCK display_names %]
15
    SET field_display_names = {
15
[% SWITCH field %]
16
        surname         => "Surname"
16
[% CASE 'surname'             %]<span>Surname</span>
17
        firstname       => "First name"
17
[% CASE 'firstname'           %]<span>First name</span>
18
        title           => "Title"
18
[% CASE 'title'               %]<span>Title</span>
19
        othernames      => "Other names"
19
[% CASE 'othernames'          %]<span>Other names</span>
20
        initials        => "Initials"
20
[% CASE 'initials'            %]<span>Initials</span>
21
        streetnumber    => "Street number"
21
[% CASE 'streetnumber'        %]<span>Street number</span>
22
        streettype      => "Street type"
22
[% CASE 'streettype'          %]<span>Street type</span>
23
        address         => "Address"
23
[% CASE 'address'             %]<span>Address</span>
24
        address2        => "Address 2"
24
[% CASE 'address2'            %]<span>Address 2</span>
25
        city            => "City"
25
[% CASE 'city'                %]<span>City</span>
26
        state           => "State"
26
[% CASE 'state'               %]<span>State</span>
27
        zipcode         => "Zip code"
27
[% CASE 'zipcode'             %]<span>Zip code</span>
28
        country         => "Country"
28
[% CASE 'country'             %]<span>Country</span>
29
        email           => "Email"
29
[% CASE 'email'               %]<span>Email</span>
30
        phone           => "Primary Phone"
30
[% CASE 'phone'               %]<span>Primary Phone</span>
31
        mobile          => "Primary Mobile Phone"
31
[% CASE 'mobile'              %]<span>Primary Mobile Phone</span>
32
        fax             => "Fax"
32
[% CASE 'fax'                 %]<span>Fax</span>
33
        emailpro        => "Secondary email"
33
[% CASE 'emailpro'            %]<span>Secondary email</span>
34
        phonepro        => "Secondary phone"
34
[% CASE 'phonepro'            %]<span>Secondary phone</span>
35
        B_streetnumber  => "Alternate address - street number"
35
[% CASE 'B_streetnumber'      %]<span>Alternate address: Street number</span>
36
        B_streettype    => "Alternate address - street type"
36
[% CASE 'B_streettype'        %]<span>Alternate address: Street type</span>
37
        B_address       => "Alternate address"
37
[% CASE 'B_address'           %]<span>Alternate address: Address</span>
38
        B_address2      => "Alternate address 2"
38
[% CASE 'B_address2'          %]<span>Alternate address: Address 2</span>
39
        B_city          => "Alternate address - city"
39
[% CASE 'B_city'              %]<span>Alternate address: City</span>
40
        B_state         => "Alternate address - state"
40
[% CASE 'B_state'             %]<span>Alternate address: State</span>
41
        B_zipcode       => "Alternate address - zip code"
41
[% CASE 'B_zipcode'           %]<span>Alternate address: Zip/postal code</span>
42
        B_email         => "Alternate address - email"
42
[% CASE 'B_email'             %]<span>Alternate address: Email</span>
43
        B_phone         => "Alternate address - phone"
43
[% CASE 'B_phone'             %]<span>Alternate address: Phone</span>
44
        contactnote     => "Alternate address - contact note"
44
[% CASE 'contactnote'         %]<span>Alternate address: Contact note</span>
45
        dateofbirth     => "Date of birth"
45
[% CASE 'dateofbirth'         %]<span>Date of birth</span>
46
        contactname     => "Contact - last name"
46
[% CASE 'contactname'         %]<span>Contact: Last name</span>
47
        contactfirstname=> "Contact - first name"
47
[% CASE 'contactfirstname'    %]<span>Contact: First name</span>
48
        contacttitle    => "Contact - title"
48
[% CASE 'contacttitle'        %]<span>Contact: Title</span>
49
        relationship    => "Contact - relationship"
49
[% CASE 'relationship'        %]<span>Contact: Relationship</span>
50
        ethnicity       => "Ethnicity"
50
[% CASE 'ethnicity'           %]<span>Ethnicity</span>
51
        ethnotes        => "Ethnicity notes"
51
[% CASE 'ethnotes'            %]<span>Ethnicity notes</span>
52
        sex             => "Sex"
52
[% CASE 'sex'                 %]<span>Sex</span>
53
        altcontactfirstname => "Alternate contact - first name"
53
[% CASE 'altcontactfirstname' %]<span>Alternate contact: First name</span>
54
        altcontactsurname   => "Alternate contact - surname"
54
[% CASE 'altcontactsurname'   %]<span>Alternate contact: Surname</span>
55
        altcontactaddress1  => "Alternate contact - address"
55
[% CASE 'altcontactaddress1'  %]<span>Alternate contact: Address</span>
56
        altcontactaddress2  => "Alternate contact - address 2"
56
[% CASE 'altcontactaddress2'  %]<span>Alternate contact: Address 2</span>
57
        altcontactaddress3  => "Alternate contact - city"
57
[% CASE 'altcontactaddress3'  %]<span>Alternate contact: City</span>
58
        altcontactstate     => "Alternate contact - state"
58
[% CASE 'altcontactstate'     %]<span>Alternate contact: State</span>
59
        altcontactzipcode   => "Alternate contact - zip code"
59
[% CASE 'altcontactzipcode'   %]<span>Alternate contact: Zip code</span>
60
        altcontactcountry   => "Alternate contact - country"
60
[% CASE 'altcontactcountry'   %]<span>Alternate contact: Country</span>
61
        altcontactphone     => "Alternate contact - phone"
61
[% CASE 'altcontactphone'     %]<span>Alternate contact: Phone</span>
62
        smsalertnumber      => "SMS alert number"
62
[% CASE 'smsalertnumber'      %]<span>SMS alert number</span>
63
    }
63
[% CASE %][% field %]
64
%]
64
[% END %]
65
[% END %]
66
65
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Update patron records</div>
67
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Update patron records</div>
66
68
67
<div id="doc2" class="yui-t7">
69
<div id="doc2" class="yui-t7">
Lines 96-105 Link Here
96
98
97
99
98
                                            [% FOREACH key IN pm.keys %]
100
                                            [% FOREACH key IN pm.keys %]
99
                                                [% IF field_display_names.$key %]
101
                                                [% IF ( key != "timestamp" ) %]
100
                                                    [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
102
                                                    [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
101
                                                        <tr>
103
                                                        <tr>
102
                                                            <td>[% field_display_names.$key %]</td>
104
                                                            <td>[% PROCESS display_names field = key %]</td>
103
                                                            <td>[% borrowers.$borrowernumber.$key %]</td>
105
                                                            <td>[% borrowers.$borrowernumber.$key %]</td>
104
                                                            <td>[% pm.$key %]</td>
106
                                                            <td>[% pm.$key %]</td>
105
                                                        </tr>
107
                                                        </tr>
106
- 

Return to bug 12222