1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Patrons › Update patron records</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 $( "#pending_updates" ).accordion();
10 <body id="pat_update" class="pat">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'patron-search.inc' %]
15 SET field_display_names = {
17 firstname => "First name"
19 othernames => "Other names"
20 initials => "Initials"
21 streetnumber => "Street number"
22 streettype => "Street type"
24 address2 => "Address 2"
30 phone => "Primary Phone"
31 mobile => "Primary Mobile Phone"
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 dateofbirth => "Date of birth"
45 contactname => "Contact - last name"
46 contactfirstname=> "Contact - first name"
47 contacttitle => "Contact - title"
48 relationship => "Contact - relationship"
49 ethnicity => "Ethnicity"
50 ethnotes => "Ethnicity notes"
52 altcontactfirstname => "Alternate contact - first name"
53 altcontactsurname => "Alternate contact - surname"
54 altcontactaddress1 => "Alternate contact - address"
55 altcontactaddress2 => "Alternate contact - address 2"
56 altcontactaddress3 => "Alternate contact - city"
57 altcontactstate => "Alternate contact - state"
58 altcontactzipcode => "Alternate contact - zip code"
59 altcontactcounty => "Alternate contact - county"
60 altcontactphone => "Alternate contact - phone"
61 smsalertnumber => "SMS alert number"
64 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Update patron records</div>
66 <div id="doc2" class="yui-t7">
71 [% IF PendingModifications %]
72 <h2>Update patron records</h2>
73 <form method="post" action="members-update-do.pl">
74 <div id="pending_updates">
75 [% FOREACH pm IN PendingModifications %]
76 [% SET borrowernumber = pm.borrowernumber %]
77 <h3><a href="#panel_modify_[% pm.borrowernumber %]">[% borrowers.$borrowernumber.surname %], [% borrowers.$borrowernumber.firstname %]</a></h3>
78 <div id="panel_modify_[% pm.borrowernumber %]">
79 <div style="background-color:#E6F0F2;padding:.5em;margin:.3em 0;">
80 <input type="radio" id="approve_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="approve" />
81 <label for="approve_modify_[% pm.borrowernumber %]">Approve</label>
83 <input type="radio" id="deny_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="deny" />
84 <label for="deny_modify_[% pm.borrowernumber %]">Deny</label>
86 <input type="radio" id="ignore_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="ignore" checked="checked"/>
87 <label for="ignore_modify_[% pm.borrowernumber %]">Ignore</label>
97 [% FOREACH key IN pm.keys %]
98 [% IF field_display_names.$key %]
99 [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
101 <td>[% field_display_names.$key %]</td>
102 <td>[% borrowers.$borrowernumber.$key %]</td>
103 <td>[% pm.$key %]</td>
112 <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
116 <div class="dialog message">
117 <p>There are no pending patron modifications.</p>
123 [% INCLUDE 'intranet-bottom.inc' %]