Bug 7067 - Fix bad url in breadcrumbs
[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         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"
51         sex             => "Sex"
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"
62     }
63 %]
64 <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>
65
66 <div id="doc2" class="yui-t7">
67
68    <div id="bd">
69         <div id="yui-main">
70
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>
82
83                                         <input type="radio" id="deny_modify_[% pm.borrowernumber %]" name="modify_[% pm.borrowernumber %]" value="deny" />
84                                         <label for="deny_modify_[% pm.borrowernumber %]">Deny</label>
85
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>
88                                     </div>
89                                         <table>
90                                             <tr>
91                                                 <th>Field</th>
92                                                 <th>From</th>
93                                                 <th>To</th>
94                                             </tr>
95
96
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 ) ) %]
100                                                         <tr>
101                                                             <td>[% field_display_names.$key %]</td>
102                                                             <td>[% borrowers.$borrowernumber.$key %]</td>
103                                                             <td>[% pm.$key %]</td>
104                                                         </tr>
105                                                     [% END %]
106                                                 [% END %]
107                                             [% END %]
108                                         </table>
109                                 </div>
110                             [% END %]
111                         </div>
112                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
113
114                 </form>
115             [% ELSE %]
116             <div class="dialog message">
117                 <p>There are no pending patron modifications.</p>
118             </div>
119             [% END %]
120
121         </div>
122     </div>
123 [% INCLUDE 'intranet-bottom.inc' %]