]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/renew/t_renew.tt2
LP 2061136 follow-up: ng lint --fix
[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"
22             ng-disabled="outOfRange" value="[% l('Submit') %]"/>
23       </div>
24     </form>
25   <div class="checkbox">
26     <label>
27       <input ng-model="strict_barcode" type="checkbox"
28         ng-change="onStrictBarcodeChange()"/>
29       [% l('Strict Barcode') %]
30     </label>
31   </div>
32   </div>
33   <div class="col-md-6">
34     <div class="flex-row">
35       <div class="flex-cell"></div>
36       <div class="checkbox pad-horiz">
37         <label>
38           <input type="checkbox" ng-model="renewalArgs.sticky_date"/>
39           [% l('Specific Due Date') %]
40         </label>
41       </div>
42       <!-- FIXME: This needs a time component as well, but type="datetime" 
43             is not yet supported by any browsers -->
44       <div><eg-date-input min-date="minDate" out-of-range="outOfRange"
45           ng-model="renewalArgs.due_date"></eg-date-input>
46       </div>
47     </div>
48   </div>
49 </div>
50 <hr/>
51
52 <eg-grid
53   id-field="index"
54   features="clientsort"
55   items-provider="gridDataProvider"
56   grid-controls="gridControls"
57   persist-key="circ.renew"
58   dateformat="{{$root.egDateAndTimeFormat}}">
59
60   <eg-grid-action 
61     handler="fetchLastCircPatron"
62     label="[% l('Retrieve Last Patron Who Circulated Item') %]">
63   </eg-grid-action>
64   <eg-grid-action 
65     handler="showLastFewCircs"
66     label="[% l('Show Last Few Circluations') %]">
67   </eg-grid-action>
68   <eg-grid-action divider="true"></eg-grid-action>
69   <eg-grid-action 
70     handler="showMarkDamaged"
71     label="[% l('Mark Items Damaged') %]">
72   </eg-grid-action>
73   <eg-grid-action
74     handler="showMarkDiscard"
75     label="[% l('Mark Items Discard/Weed') %]">
76   </eg-grid-action>
77   <eg-grid-action divider="true"></eg-grid-action>
78   <eg-grid-action 
79     handler="abortTransit"
80     label="[% l('Cancel Transits') %]">
81   </eg-grid-action>
82   <eg-grid-action divider="true"></eg-grid-action>
83   <eg-grid-action
84     handler="addCopyAlerts"
85     label="[% l('Add Item Alerts') %]">
86   </eg-grid-action>
87   <eg-grid-action
88     handler="manageCopyAlerts"
89     label="[% l('Manage Item Alerts') %]">
90   </eg-grid-action>
91
92
93   <eg-grid-field label="[% l('Balance Owed') %]"     
94     path='mbts.balance_owed' comparator="sort_money"></eg-grid-field>
95
96   <eg-grid-field label="[% l('Barcode') %]" path="copy_barcode">
97     <!-- FIXME: ng-if / ng-disabled not working since the contents 
98         are $interpolate'd and not $compile'd.
99         I want to hide / disable the href when there is no acp ID 
100     -->
101     <a href="./cat/item/{{item.acp.id()}}/summary" target="_self">
102       {{item.copy_barcode}}
103     </a>
104   </eg-grid-field>
105
106   <eg-grid-field label="[% l('Bill #') %]"     
107     path='circ.id'></eg-grid-field>
108
109   <eg-grid-field label="[% l('CN Prefix') %]" 
110     path="acn.prefix.label"></eg-grid-field>
111
112   <eg-grid-field label="[% l('Call Number') %]"
113     path="acn.label"></eg-grid-field>
114
115   <eg-grid-field label="[% l('CN Suffix') %]"
116     path="acn.suffix.label"></eg-grid-field>
117
118   <eg-grid-field label="[% l('Due Date') %]"    
119     path='circ.due_date' datecontext="circ_lib" dateonlyinterval="duration" datatype="timestamp"></eg-grid-field>
120
121   <eg-grid-field label="[% l('Family Name') %]"    
122     path='au.family_name'></eg-grid-field>
123
124   <eg-grid-field label="[% l('Location') %]" 
125     path='acp.location.name'> </eg-grid-field>
126
127   <eg-grid-field label="[% l('Remaining Renewals') %]" 
128     path='circ.renewal_remaining'></eg-grid-field>
129
130   <eg-grid-field label="[% l('Title') %]" path="title">
131     <a href="/eg2/staff/catalog/record/{{record.doc_id()}}">
132       {{item.title}}
133     </a>
134   </eg-grid-field>
135
136   <eg-grid-field label="[% l('Author') %]"      
137     path="author" hidden></eg-grid-field>
138
139   <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
140   <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
141   <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
142   <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
143   <eg-grid-field path="mbts.*" parent-idl-class="mbts" hidden></eg-grid-field>
144   <eg-grid-field path="au.*" parent-idl-class="au" hidden></eg-grid-field>
145 </eg-grid>
146
147 <div class="flex-row pad-vert">
148   <div class="flex-cell"></div>
149   <div class="pad-horiz">
150     <button class="btn btn-default" 
151       ng-click="print_receipt()">[% l('Print Receipt') %]</button>
152   </div>
153   <div class="checkbox">
154     <label>
155       <input ng-model="trim_list" type="checkbox"/>
156       [% l('Trim List (20 Rows)') %]
157     </label>
158   </div>
159   <div class="pad-horiz"></div>
160 </div>
161