LP#1350042 Browser client templates/scripts (phase 1)
[Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_items_out.tt2
1 <!-- items out list -->
2
3 <div ng-if="show_alt_circs">
4   <!-- only show the main vs. alt circ list tabs if the alt
5       circ list is meant to display -->
6   <ul class="nav nav-tabs">
7     <li ng-class="{active : items_out_display == 'main'}">
8       <a href ng-click="show_main_list()">
9         [% l('Items Checked Out') %] ({{main_list.length}})
10       </a>
11     </li>
12     <li ng-class="{active : items_out_display == 'alt'}">
13       <a href ng-click="show_alt_list()">
14         [% l('Other/Special Circulations') %] ({{alt_list.length}})
15       </a>
16     </li>
17   </ul>
18 </div>
19 <div ng-if="!show_alt_circs" class="strong-text-2">
20   [% l('Items Checked Out') %]
21 </div>
22
23 <div class="tab-content">
24   <div class="tab-pane active">
25 <eg-grid
26   idl-class="circ"
27   id-field="id"
28   features="-sort,-multisort"
29   items-provider="gridDataProvider"
30   persist-key="circ.patron.items_out">
31
32   <eg-grid-action handler="print_receipt"
33     label="[% l('Print Item Receipt') %]"></eg-grid-action>
34   <eg-grid-action handler="edit_due_date"
35     label="[% l('Edit Due Date') %]"></eg-grid-action>
36   <eg-grid-action handler="mark_lost"
37     label="[% l('Mark Lost (By Patron)') %]"></eg-grid-action>
38   <eg-grid-action handler="mark_claims_returned"
39     label="[% l('Mark Claims Returned') %]"></eg-grid-action>
40   <eg-grid-action handler="mark_claims_never_checked_out"
41     label="[% l('Mark Claims Never Checked Out') %]"></eg-grid-action>
42   <eg-grid-action handler="renew" label="[% l('Renew') %]"></eg-grid-action>
43   <eg-grid-action handler="renew_all" label="[% l('Renew All') %]"></eg-grid-action>
44   <eg-grid-action handler="renew_with_date" 
45     label="[% l('Renew With Specific Due Date') %]"></eg-grid-action>
46   <eg-grid-action handler="checkin" 
47     label="[% l('Check In') %]"></eg-grid-action>
48   <eg-grid-action handler="add_billing" 
49     label="[% l('Add Billing') %]"></eg-grid-action>
50
51   <eg-grid-field label="[% l('Circ ID') %]" path='id'></eg-grid-field>
52   <eg-grid-field label="[% l('Barcode') %]" path='target_copy.barcode'>
53     <a href="./cat/item/{{item.target_copy().id()}}" target="_self">
54       {{item.target_copy().barcode()}}
55     </a>
56   </eg-grid-field>
57   <eg-grid-field label="[% l('Due Date') %]" path='due_date' dateformat='short'></eg-grid-field>
58   <eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></eg-grid-field>
59   <eg-grid-field label="[% l('Renewals Remaining') %]" path='renewal_remaining'></eg-grid-field>
60   <eg-grid-field label="[% l('Fines Stopped') %]" path='stop_fines'></eg-grid-field>
61   <eg-grid-field label="[% l('Title') %]" name="title">
62     <a href="[% ctx.base_path %]/opac/record/{{item.target_copy().call_number().record().id()}}">
63       {{item.target_copy().call_number().record().simple_record().title()}}
64     </a>
65   </eg-grid-field>
66   <eg-grid-field path="*" hidden></eg-grid-field>
67   <eg-grid-field path="target_copy.*" hidden></eg-grid-field>
68   <eg-grid-field path="target_copy.call_number.*" hidden></eg-grid-field>
69   <eg-grid-field path="target_copy.call_number.record.*" hidden></eg-grid-field>
70   <eg-grid-field path="target_copy.call_number.record.simple_record.*" hidden></eg-grid-field>
71 </eg-grid>
72   </div>
73 </div>