d9c454397dcdddce5eec354d876d95b643fbe989
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_bill_history.tt2
1 <h2>[% l('Bill History') %]</h2>
2
3 <ul class="nav nav-tabs">
4   <li ng-class="{active : bill_tab == 'transactions'}">
5     <a href="./circ/patron/{{patron().id()}}/bill_history/transactions">
6         [% l('Transactions') %]
7     </a>
8   </li>
9   <li ng-class="{active : bill_tab == 'payments'}">
10     <a href="./circ/patron/{{patron().id()}}/bill_history/payments">
11         [% l('Payments') %]
12     </a>
13   </li>
14 </ul>
15 <div class="tab-content">
16   <div class="tab-pane active">
17
18     <div class="row padded">
19       <div class="col-md-2">
20         <span ng-if="bill_tab == 'transactions'">
21             <label>[% l('Selected Billed:') %]</label>
22             {{totals.selected_billed() | currency}}
23             <br/>
24         </span>
25         <label>[% l('Selected Paid:') %]</label>
26         <span>{{totals.selected_paid() | currency}}</span>
27       </div>
28       <div class="col-md-1">
29         <span><button class="btn btn-default" 
30             ng-click="actions.apply_date_range()">[% l('Apply') %]</button></span>
31       </div>
32       <div class="col-md-4 flex-row padded">
33         <label>[% l('Start Date:') %]</label>
34         <div><eg-date-input ng-model="dates.xact_start"></eg-date-input></div>
35       </div>
36       <div class="col-md-4 flex-row padded">
37         <label>[% l('End Date:') %]</label>
38         <div><eg-date-input ng-model="dates.xact_finish"></eg-date-input></div>
39       </div>
40     </div><!-- top row -->
41     <hr/>
42     [% INCLUDE 'staff/circ/patron/t_bill_history_xacts.tt2' %]
43     [% INCLUDE 'staff/circ/patron/t_bill_history_payments.tt2' %]
44   </div>
45 </div>
46