Bug 26486: Group edit buttons in reports toolbar
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / waiting_holds.inc
1 [% USE ItemTypes %]
2 [% USE AuthorisedValues %]
3 <table class="holds_table" id="[% table_name | html %]">
4     <thead>
5         <tr>
6             [% IF select_column %]
7             <th class="NoSort"><input type="checkbox" class="select_hold_all"/></th>
8             [% END %]
9             <th>Waiting since</th>
10             <th>Date hold placed</th>
11             <th>Expiration date</th>
12             <th class="anti-the">Title</th>
13             <th>Patron</th>
14             <th>Home library</th>
15             <th>Current library</th>
16             <th>Shelving location</th>
17             <th>Call number</th>
18             <th>Copy number</th>
19             <th>Enumeration</th>
20             <th class="NoSort noExport">Actions</th>
21         </tr>
22     </thead>
23     <tbody>
24         [% FOREACH reserveloo IN reserveloop %]
25             <tr>
26                 [% IF select_column %]
27                 <th><input type="checkbox" class="select_hold" data-id="[% reserveloo.reserve_id | html %]"/></th>
28                 [% END %]
29                 <td><span data-order="[% reserveloo.waitingdate | html %]">[% reserveloo.waitingdate | $KohaDates %]</span></td>
30                 <td><span data-order="[% reserveloo.reservedate | html %]">[% reserveloo.reservedate | $KohaDates %]</span></td>
31                 <td><span data-order="[% reserveloo.expirationdate | html %]">[% reserveloo.expirationdate | $KohaDates %]</span></td>
32                 <td>
33                     [% INCLUDE 'biblio-title.inc' biblio=reserveloo.biblio link = 1 %]
34                         [% UNLESS ( item_level_itypes ) %]
35                             [% IF ( ItemTypes.GetDescription(reserveloo.item.effective_itemtype) ) %]&nbsp; (<strong>[% ItemTypes.GetDescription(reserveloo.item.effective_itemtype) | html %]</strong>)
36                             [% END %]
37                         [% END %]
38                         <br />Barcode: [% reserveloo.item.barcode | html %]
39                 </td>
40                 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrower.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=reserveloo.borrower invert_name=1 no_title=1 %]</a>
41                     [% IF ( reserveloo.borrower.phone ) %]<br /><span class="patron_phone">[% reserveloo.borrower.phone | html %]</span>[% END %]
42                     [% IF ( reserveloo.borrower.first_valid_email_address ) %]
43                         <span class="patron_email"><br /><a href="mailto:[% reserveloo.borrower.first_valid_email_address | uri %]?subject=[% "Hold waiting: " | uri %][% reserveloo.biblio.title | uri %]">
44                         [% reserveloo.borrower.first_valid_email_address | html %]</a></span>
45                     [% END %]
46                 </td>
47                 <td>[% Branches.GetName( reserveloo.item.homebranch ) | html %]</td>
48                 <td>[% Branches.GetName( reserveloo.item.holdingbranch ) | html %][% IF (reserveloo.desk_id  ) %], [% reserveloo.desk.desk_name | html %][% END %]</td>
49                 <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => reserveloo.item.location) | html %]</td>
50                 <td>[% reserveloo.item.itemcallnumber | html %]</td>
51                 <td>[% reserveloo.item.copynumber | html %]</td>
52                 <td>[% reserveloo.item.enumchron | html %]</td>
53                 <td>
54                     <form name="cancelReserve" action="waitingreserves.pl" method="post">
55                         <input type="hidden" name="borrowernumber" value="[% reserveloo.borrower.borrowernumber | html %]" />
56                         <input type="hidden" name="itemnumber" value="[% reserveloo.item.itemnumber | html %]" />
57                         <input type="hidden" name="fbr" value="[% reserveloo.item.holdingbranch | html %]" />
58                         <input type="hidden" name="tbr" value="[% reserveloo.item.homebranch | html %]" />
59                         <input type="hidden" name="tab" value="[% tab | html %]">
60                         [% IF ( reserveloo.item.homebranch != reserveloo.item.holdingbranch ) %]
61                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold and return to: [% Branches.GetName( reserveloo.item.homebranch ) | html %]</button>
62                         [% ELSE %]
63                             <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Cancel hold</button>
64                         [% END %]
65                    </form>
66                 </td>
67             </tr>
68         [% END %]
69     </tbody>
70 </table>