Bug 7067 - OPAC Borrower Self Registration
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / members-update.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons [% IF ( searching ) %]&rsaquo; Search results[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="pat_member" class="pat">
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'patron-search.inc' %]
8
9 [%
10     SET field_display_names = {
11         surname         => "Surname"
12         firstname       => "First name"
13         title           => "Title"
14         othernames      => "Other names"
15         initials        => "Initials"
16         streetnumber    => "Street number"
17         streettype      => "Street type"
18         address         => "Address"
19         address2        => "Address 2"
20         city            => "City"
21         state           => "State"
22         zipcode         => "Zip code"
23         country         => "Country"
24         email           => "Email"
25         phone           => "Primary Phone"
26         mobile          => "Primary Mobile Phone"
27         fax             => "Fax"
28         emailpro        => "Secondary email"
29         phonepro        => "Secondary phone"
30         B_streetnumber  => "Alternate address - street number"
31         B_streettype    => "Alternate address - street type"
32         B_address       => "Alternate address"
33         B_address2      => "Alternate address 2"
34         B_city          => "Alternate address - city"
35         B_state         => "Alternate address - state"
36         B_zipcode       => "Alternate address - zip code"
37         B_email         => "Alternate address - email"
38         B_phone         => "Alertnate address - phone"
39         dateofbirth     => "Date of birth"
40         contactname     => "Contact - last name"
41         contactfirstname=> "Contact - first name"
42         contacttitle    => "Contact - title"
43         relationship    => "Contact - relationship"
44         ethnicity       => "Ethnicity"
45         ethnotes        => "Ethnicity notes"
46         sex             => "Sex"
47         altcontactfirstname => "Alternate contact - first name"
48         altcontactsurname   => "Alternate contact - surname"
49         altcontactaddress1  => "Alternate contact - address"
50         altcontactaddress2  => "Alternate contact - address 2"
51         altcontactaddress3  => "Alternate contact - city"
52         altcontactstate     => "Alternate contact - state"
53         altcontactzipcode   => "Alternate contact - zip code"
54         altcontactcounty    => "Alternate contact - county"
55         altcontactphone     => "Alternate contact - phone"
56         smsalertnumber      => "SMS alert number"
57     }
58 %]
59 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Patrons &rsaquo; Modifications</div>
60
61 <div id="doc2" class="yui-t7">
62
63    <div id="bd">
64         <div id="yui-main">
65             <div class="yui-b">
66                 <div class="yui-g">
67                     [% IF PendingModifications %]
68                         <form method="post" action="members-update-do.pl">
69
70                             <table>
71                                 <thead>
72                                     <tr>
73                                         <th colspan="3">Action</th>
74                                         <th rowspan="2">Patron</th>
75                                         <th rowspan="2">Changes</th>
76                                     </tr>
77
78                                     <tr>
79                                         <th>Approve</th>
80                                         <th>Deny</th>
81                                         <th>Ignore</th>
82                                     </tr>
83                                 </thead>
84
85                                 <tbody>
86                                     [% FOREACH pm IN PendingModifications %]
87                                         [% SET borrowernumber = pm.borrowernumber %]
88                                         <tr>
89                                             <td>
90                                                 <input type="radio" name="modify_[% pm.borrowernumber %]" value="approve" />
91                                             </td>
92                                             <td>
93                                                 <input type="radio" name="modify_[% pm.borrowernumber %]" value="deny" />
94                                             </td>
95                                             <td>
96                                                 <input type="radio" name="modify_[% pm.borrowernumber %]" value="ignore" checked="checked"/>
97                                             </td>
98
99                                             <td>
100                                                 [% borrowers.$borrowernumber.firstname %] [% borrowers.$borrowernumber.surname %]
101                                             </td>
102
103                                             <td>
104                                                 <table>
105                                                     <tr>
106                                                         <th>Field</th>
107                                                         <th>From</th>
108                                                         <th>To</th>
109                                                     </tr>
110
111
112                                                     [% FOREACH key IN pm.keys %]
113                                                         [% IF field_display_names.$key %]
114                                                             [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
115                                                                 <tr>
116                                                                     <td>[% field_display_names.$key %]</td>
117                                                                     <td>[% borrowers.$borrowernumber.$key %]</td>
118                                                                     <td>[% pm.$key %]</td>
119                                                                 </tr>
120                                                             [% END %]
121                                                         [% END %]
122                                                     [% END %]
123                                                 </table>
124                                             </td>
125                                         </tr>
126                                     [% END %]
127                                 </tbody>
128                             </table>
129
130                             <p><input type="submit" /></p>
131
132                         </form>
133                     [% ELSE %]
134                         <p>There are no pending patron modifications.</p>
135                     [% END %]
136                 </div>
137             </div>
138         </div>
139     </div>
140 [% INCLUDE 'intranet-bottom.inc' %]