Bug 7720: add options for controlling display of an item's home and/or holdings location
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / members-update.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo; Update patron records</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
5     $(function() {
6         $( "#pending_updates" ).accordion();
7     });
8 </script>
9 </head>
10 <body id="pat_update" class="pat">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'patron-search.inc' %]
13
14 [%
15     SET field_display_names = {
16         surname         => "Surname"
17         firstname       => "First name"
18         title           => "Title"
19         othernames      => "Other names"
20         initials        => "Initials"
21         streetnumber    => "Street number"
22         streettype      => "Street type"
23         address         => "Address"
24         address2        => "Address 2"
25         city            => "City"
26         state           => "State"
27         zipcode         => "Zip code"
28         country         => "Country"
29         email           => "Email"
30         phone           => "Primary Phone"
31         mobile          => "Primary Mobile Phone"
32         fax             => "Fax"
33         emailpro        => "Secondary email"
34         phonepro        => "Secondary phone"
35         B_streetnumber  => "Alternate address - street number"
36         B_streettype    => "Alternate address - street type"
37         B_address       => "Alternate address"
38         B_address2      => "Alternate address 2"
39         B_city          => "Alternate address - city"
40         B_state         => "Alternate address - state"
41         B_zipcode       => "Alternate address - zip code"
42         B_email         => "Alternate address - email"
43         B_phone         => "Alertnate address - phone"
44         contactnote     => "Alternate address - contact note"
45         dateofbirth     => "Date of birth"
46         contactname     => "Contact - last name"
47         contactfirstname=> "Contact - first name"
48         contacttitle    => "Contact - title"
49         relationship    => "Contact - relationship"
50         ethnicity       => "Ethnicity"
51         ethnotes        => "Ethnicity notes"
52         sex             => "Sex"
53         altcontactfirstname => "Alternate contact - first name"
54         altcontactsurname   => "Alternate contact - surname"
55         altcontactaddress1  => "Alternate contact - address"
56         altcontactaddress2  => "Alternate contact - address 2"
57         altcontactaddress3  => "Alternate contact - city"
58         altcontactstate     => "Alternate contact - state"
59         altcontactzipcode   => "Alternate contact - zip code"
60         altcontactcountry   => "Alternate contact - country"
61         altcontactphone     => "Alternate contact - phone"
62         smsalertnumber      => "SMS alert number"
63     }
64 %]
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>
66
67 <div id="doc2" class="yui-t7">
68
69    <div id="bd">
70         <div id="yui-main">
71
72             [% IF PendingModifications %]
73             <h2>Update patron records</h2>
74                 <form method="post" action="members-update-do.pl">
75                     <div id="pending_updates">
76                             [% FOREACH pm IN PendingModifications %]
77                                 [% SET borrowernumber = pm.borrowernumber %]
78                                 <h3><a href="#panel_modify_[% pm.borrowernumber %]">[% borrowers.$borrowernumber.surname %], [% borrowers.$borrowernumber.firstname %]</a></h3>
79                                 <div id="panel_modify_[% pm.borrowernumber %]">
80                                     <div style="background-color:#E6F0F2;padding:.5em;margin:.3em 0;">
81                                         <input type="radio" id="approve_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="approve" />
82                                         <label for="approve_modify_[% pm.borrowernumber %]">Approve</label>
83
84                                         <input type="radio" id="deny_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="deny" />
85                                         <label for="deny_modify_[% pm.borrowernumber %]">Deny</label>
86
87                                         <input type="radio" id="ignore_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="ignore" checked="checked"/>
88                                         <label for="ignore_modify_[% pm.borrowernumber %]">Ignore</label>
89                                     </div>
90                                         <table>
91                                             <tr>
92                                                 <th>Field</th>
93                                                 <th>From</th>
94                                                 <th>To</th>
95                                             </tr>
96
97
98                                             [% FOREACH key IN pm.keys %]
99                                                 [% IF field_display_names.$key %]
100                                                     [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
101                                                         <tr>
102                                                             <td>[% field_display_names.$key %]</td>
103                                                             <td>[% borrowers.$borrowernumber.$key %]</td>
104                                                             <td>[% pm.$key %]</td>
105                                                         </tr>
106                                                     [% END %]
107                                                 [% END %]
108                                             [% END %]
109                                         </table>
110                                 </div>
111                             [% END %]
112                         </div>
113                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
114
115                 </form>
116             [% ELSE %]
117             <div class="dialog message">
118                 <p>There are no pending patron modifications.</p>
119             </div>
120             [% END %]
121
122         </div>
123     </div>
124 [% INCLUDE 'intranet-bottom.inc' %]