lp1668352 Add barcode to patron neg balance grid
[working/Evergreen.git] / Open-ILS / src / templates / staff / admin / local / circ / neg_balance_users.tt2
1 [%
2   WRAPPER "staff/base.tt2";
3   ctx.page_title = l("Users with Negative Balances"); 
4   ctx.page_app = "egAdminCirc";
5   ctx.page_ctrl = 'NegBalances';
6 %]
7
8 [% BLOCK APP_JS %]
9 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/grid.js"></script>
10 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/ui.js"></script>
11 <script src="[% ctx.media_prefix %]/js/ui/default/staff/admin/local/circ/neg_balance_users.js"></script>
12 <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/admin.css" />
13 [% END %]
14
15 <div class="container-fluid" style="text-align:center">
16   <div class="alert alert-info alert-less-pad strong-text-2">
17     [% l('Patrons with Negative Balances') %]
18   </div>
19 </div>
20
21 <div class="row">
22   <div class="col-md-4">
23     <div class="form-group">
24       <label>[% l('Patron Library') %]</label>
25       <eg-org-selector onchange="org_changed" 
26         disable-test="disable_org"
27         selected="context_org"></eg-org-selector>
28     </div>
29   </div>
30 </div>
31
32 <eg-grid
33   id-field="usr_id"
34   features="-sort,-multisort"
35   items-provider="grid_provider"
36   grid-controls="grid_controls"
37   persist-key="admin.local.circ.neg_balance_users"
38   dateformat="{{$root.egDateAndTimeFormat}}">
39
40   <eg-grid-action handler="get_user"
41     label="[% l('Retrieve Patron') %]"></eg-grid-action>
42   <eg-grid-field label="[% l('Barred') %]" path='usr.barred'></eg-grid-field>
43   <eg-grid-field label="[% l('Barcode') %]" path="usr.card.barcode">
44     <a href="./circ/patron/{{item.usr.id()}}/checkout/" target="_blank">
45       {{item.usr.card().barcode()}}
46     </a>
47   </eg-grid-field>
48   <eg-grid-field label="[% l('Date of Birth') %]" dateformat="{{$root.egDateFormat}}" datatype="timestamp" path='usr.dob'></eg-grid-field>
49   <eg-grid-field label="[% l('Last Name') %]" path='usr.family_name'></eg-grid-field>
50   <eg-grid-field label="[% l('First Name') %]" path='usr.first_given_name'></eg-grid-field>
51   <eg-grid-field label="[% l('Middle Name') %]" path='usr.second_given_name'></eg-grid-field>
52   <eg-grid-field label="[% l('Balance Owed') %]" path='balance_owed'></eg-grid-field>
53   <eg-grid-field label="[% l('Last Billing Activity') %]" 
54     path='last_billing_activity' datatype='timestamp'></eg-grid-field>
55   <eg-grid-field path='usr.*' parent-idl-class="au" hidden></eg-grid-field>
56   
57 </eg-grid>
58
59    
60
61 [% END %]