344e851b8fc600b8e5c7af9817d60b299c29daaa
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / renew / t_renew.tt2
1 <!-- item renewal form / list -->
2
3 <div class="container-fluid" style="text-align:center">
4   <div class="alert alert-info alert-less-pad strong-text-2">
5     [% l('Renew Items') %]
6   </div>
7 </div>
8
9 <div class="row">
10   <div class="col-md-6">
11     <form ng-submit="renew(renewalArgs)" role="form" class="form-inline">
12       <div class="input-group">
13
14         <label class="input-group-addon" 
15           for="patron-renewal-barcode" >[% l('Barcode') %]</label>
16
17         <input focus-me="focusBarcode" class="form-control"
18           ng-model="renewalArgs.copy_barcode" 
19           id="patron-renewal-barcode" type="text"/> 
20
21         <input class="btn btn-default" type="submit" value="[% l('Submit') %]"/>
22       </div>
23     </form>
24   </div>
25   <div class="col-md-6">
26     <div class="flex-row">
27       <div class="flex-cell"></div>
28       <div class="checkbox pad-horiz">
29         <label>
30           <input type="checkbox" ng-model="renewalArgs.sticky_date"/>
31           [% l('Specific Due Date') %]
32         </label>
33       </div>
34       <!-- FIXME: This needs a time component as well, but type="datetime" 
35             is not yet supported by any browsers -->
36       <div><eg-date-input ng-model="renewalArgs.due_date"></eg-date-input>
37       </div>
38     </div>
39   </div>
40 </div>
41 <hr/>
42
43 <eg-grid
44   id-field="index"
45   features="clientsort"
46   items-provider="gridDataProvider"
47   grid-controls="gridControls"
48   persist-key="circ.renew"
49   dateformat="{{$root.egDateAndTimeFormat}}">
50
51   <eg-grid-action 
52     handler="fetchLastCircPatron"
53     label="[% l('Retrieve Last Patron Who Circulated Item') %]">
54   </eg-grid-action>
55   <eg-grid-action 
56     handler="showLastFewCircs"
57     label="[% l('Show Last Few Circluations') %]">
58   </eg-grid-action>
59   <eg-grid-action divider="true"></eg-grid-action>
60   <eg-grid-action 
61     handler="showMarkDamaged"
62     label="[% l('Mark Items Damaged') %]">
63   </eg-grid-action>
64   <eg-grid-action divider="true"></eg-grid-action>
65   <eg-grid-action 
66     handler="abortTransit"
67     label="[% l('Cancel Transits') %]">
68   </eg-grid-action>
69
70
71   <eg-grid-field label="[% l('Alert Msg') %]"   
72     path="acp.alert_message"></eg-grid-field>
73
74   <eg-grid-field label="[% l('Balance Owed') %]"     
75     path='mbts.balance_owed' comparator="sort_money"></eg-grid-field>
76
77   <eg-grid-field label="[% l('Barcode') %]" path="copy_barcode">
78     <!-- FIXME: ng-if / ng-disabled not working since the contents 
79         are $interpolate'd and not $compile'd.
80         I want to hide / disable the href when there is no acp ID 
81     -->
82     <a href="./cat/item/{{item.acp.id()}}/summary" target="_self">
83       {{item.copy_barcode}}
84     </a>
85   </eg-grid-field>
86
87   <eg-grid-field label="[% l('Bill #') %]"     
88     path='circ.id'></eg-grid-field>
89
90   <eg-grid-field label="[% l('CN Prefix') %]" 
91     path="acn.prefix.label"></eg-grid-field>
92
93   <eg-grid-field label="[% l('Call Number') %]"
94     path="acn.label"></eg-grid-field>
95
96   <eg-grid-field label="[% l('CN Suffix') %]"
97     path="acn.suffix.label"></eg-grid-field>
98
99   <eg-grid-field label="[% l('Due Date') %]"    
100     path='circ.due_date' datecontext="circ_lib" dateonlyinterval="duration" datatype="timestamp"></eg-grid-field>
101
102   <eg-grid-field label="[% l('Family Name') %]"    
103     path='au.family_name'></eg-grid-field>
104
105   <eg-grid-field label="[% l('Location') %]" 
106     path='acp.location.name'> </eg-grid-field>
107
108   <eg-grid-field label="[% l('Remaining Renewals') %]" 
109     path='circ.renewal_remaining'></eg-grid-field>
110
111   <eg-grid-field label="[% l('Title') %]" path="title">
112     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.doc_id()}}">
113       {{item.title}}
114     </a>
115   </eg-grid-field>
116
117   <eg-grid-field label="[% l('Author') %]"      
118     path="author" hidden></eg-grid-field>
119
120   <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
121   <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
122   <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
123   <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
124   <eg-grid-field path="mbts.*" parent-idl-class="mbts" hidden></eg-grid-field>
125   <eg-grid-field path="au.*" parent-idl-class="au" hidden></eg-grid-field>
126 </eg-grid>
127
128 <div class="flex-row pad-vert">
129   <div class="flex-cell"></div>
130   <div class="pad-horiz">
131     <button class="btn btn-default" 
132       ng-click="print_receipt()">[% l('Print Receipt') %]</button>
133   </div>
134   <div class="checkbox">
135     <label>
136       <input ng-model="trim_list" type="checkbox"/>
137       [% l('Trim List (20 Rows)') %]
138     </label>
139   </div>
140   <div class="pad-horiz"></div>
141   <div class="checkbox">
142     <label>
143       <input ng-model="strict_barcode" type="checkbox"/>
144       [% l('Strict Barcode') %]
145     </label>
146   </div>
147 </div>
148