42d6e67d604a1e628156097a9c390e960c35f2e2
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / checkin / t_checkin.tt2
1 <div class="container-fluid" style="text-align:center">
2   <div class="alert alert-info alert-less-pad strong-text-2">
3     <span ng-if="!is_capture">[% l('Checkin Items') %]</span>
4     <span ng-if="is_capture">[% l('Capture Holds') %]</span>
5   </div>
6 </div>
7
8 <div class="row">
9   <div class="col-md-12">
10     <div ng-if="is_backdate()" class="alert-danger pad-all-min">
11       [% l('Backdated Check In [_1]', 
12         '{{checkinArgs.backdate | date:$root.egDateFormat}}') %]
13     </div>
14     <div ng-if="modifiers.no_precat_alert" class="alert-danger pad-all-min">
15       [% l('Ignore Pre-Cataloged Items') %]
16     </div>
17     <div ng-if="modifiers.noop" class="alert-danger pad-all-min">
18       [% l('Suppress Holds and Transits') %]
19     </div>
20     <div ng-if="modifiers.void_overdues" class="alert-danger pad-all-min">
21       [% l('Amnesty Mode') %]
22     </div>
23     <div ng-if="modifiers.auto_print_holds_transits" 
24       class="alert-danger pad-all-min">
25       [% l('Auto-Print Hold and Transit Slips') %]
26     </div>
27     <div ng-if="modifiers.clear_expired" class="alert-danger pad-all-min">
28       [% l('Clear Holds Shelf') %]
29     </div>
30     <div ng-if="modifiers.retarget_holds" class="alert-danger pad-all-min">
31       <div ng-if="modifiers.retarget_holds_all">
32         [% l('Always Retarget Local Holds') %]
33       </div>
34       <div ng-if="!modifiers.retarget_holds_all">
35         [% l('Retarget Local Holds') %]
36       </div>
37     </div>
38     <div ng-if="modifiers.hold_as_transit" class="alert-danger pad-all-min">
39       [% l('Capture Local Holds As Transits') %]
40     </div>
41     <div ng-if="modifiers.manual_float" class="alert-danger pad-all-min">
42       [% l('Manual Floating Active') %]
43     </div>
44   </div>
45 </div>
46
47 <!-- checkin form -->
48 <div class="row pad-vert">
49   <div class="col-md-5">
50     <form ng-submit="checkin(checkinArgs)" role="form" class="form-inline">
51       <div class="input-group">
52
53         <label class="input-group-addon" 
54           for="patron-checkin-barcode" >[% l('Barcode') %]</label>
55
56         <input focus-me="focusMe" blur-me="blurMe" 
57           class="form-control"
58           ng-model="checkinArgs.copy_barcode" 
59           placeholder="[% l('Barcode') %]"
60           id="patron-checkin-barcode" type="text"/> 
61
62         <input type="submit" class="btn btn-default" value="[% l('Submit') %]"/>
63       </div>
64     </form>
65   </div>
66
67   <div class="col-md-3">
68     <div ng-if="alert" class="col-md-12 alert-danger pad-all-min">
69       <span ng-if="alert.already_checked_in">
70         [% l('[_1] was already checked in.', '{{alert.already_checked_in}}') %]
71       </span>
72       <span ng-if="alert.item_never_circed">
73         [% l('Item [_1] has never circulated.', '{{alert.item_never_circed}}') %]
74       </span>
75     </div>
76   </div>
77
78   <div class="col-md-4" ng-if="!is_capture">
79     <div class="flex-row">
80       <div class="flex-cell"></div>
81       <div class="pad-horiz">[% l('Effective Date') %]</div>
82       <!-- date max= not yet supported -->
83       <div><eg-date-input ng-model="checkinArgs.backdate"></eg-date-input>
84       </div>
85     </div>
86   </div>
87 </div>
88
89 <div class="row" ng-if="fine_total">
90   <div class="col-md-12">
91     <span>[% l('Fine Tally:') %]</span>
92     <span class="pad-horiz alert alert-danger">{{fine_total | currency}}</span>
93     <span ng-if="billable_barcode">
94       <!-- note: this forces a new tab -->
95       <a href='./circ/patron/{{billable_user_id}}/bills' target='_blank'>
96         <span>[% l('Transaction for [_1] billed:', '{{billable_barcode}}') %]</span>
97       </a>
98       <span class="pad-horiz alert alert-danger">{{billable_amount | currency}}</span>
99     </span>
100   </div>
101 </div>
102
103 <hr/>
104
105 [% INCLUDE 'staff/circ/checkin/t_checkin_table.tt2' %]
106
107 <div class="row pad-vert">
108   <div class="col-md-10">
109     <div class="flex-row">
110       <div class="flex-cell"></div>
111       <div class="pad-horiz">
112         <button class="btn btn-default" 
113           ng-click="print_receipt()">[% l('Print Receipt') %]</button>
114       </div>
115       <div class="checkbox" ng-if="using_hatch_printer">
116         <label>
117           <input ng-model="show_print_dialog" type="checkbox"/>
118           [% l('Show Print Dialog') %]
119         </label>
120       </div>
121       <div class="pad-horiz" ng-if="using_hatch_printer"></div>
122       <div class="checkbox">
123         <label>
124           <input ng-model="trim_list" type="checkbox"/>
125           [% l('Trim List (20 Rows)') %]
126         </label>
127       </div>
128       <div class="pad-horiz"></div>
129       <div class="checkbox">
130         <label>
131           <input ng-model="strict_barcode" type="checkbox"/>
132           [% l('Strict Barcode') %]
133         </label>
134       </div>
135     </div><!-- flex row -->
136   </div><!-- col -->
137   <div class="col-md-2">
138     <div class="input-group-btn" uib-dropdown>
139       <button type="button" class="btn btn-default" uib-dropdown-toggle>
140         [% l('Checkin Modifiers') %]
141         <span class="caret"></span>
142       </button>
143       <ul class="pull-right" uib-dropdown-menu>
144         <li>
145           <a href
146             ng-click="toggle_mod('no_precat_alert')">
147             <span ng-if="modifiers.no_precat_alert" 
148               class="label label-success">&#x2713;</span>
149             <span ng-if="!modifiers.no_precat_alert"
150               class="label label-warning">&#x2717;</span>
151             <span>[% l('Ignore Pre-cataloged Items') %]</span>
152           </a>
153         </li>
154         <li ng-if="!is_capture"><!-- nonsensical for hold capture -->
155           <a href
156             ng-click="toggle_mod('noop')">
157             <span ng-if="modifiers.noop" 
158               class="label label-success">&#x2713;</span>
159             <span ng-if="!modifiers.noop"
160               class="label label-warning">&#x2717;</span>
161             <span>[% l('Suppress Holds and Transits') %]</span>
162           </a>
163         </li>
164         <li>
165           <a href
166             ng-click="toggle_mod('void_overdues')">
167             <span ng-if="modifiers.void_overdues" 
168               class="label label-success">&#x2713;</span>
169             <span ng-if="!modifiers.void_overdues"
170               class="label label-warning">&#x2717;</span>
171             <span>[% l('Amnesty Mode') %]</span>
172           </a>
173         </li>
174         <li>
175           <a href
176             ng-click="toggle_mod('auto_print_holds_transits')">
177             <span ng-if="modifiers.auto_print_holds_transits" 
178               class="label label-success">&#x2713;</span>
179             <span ng-if="!modifiers.auto_print_holds_transits"
180               class="label label-warning">&#x2717;</span>
181             <span>[% l('Auto-Print Hold and Transit Slips') %]</span>
182           </a>
183         </li>
184         <li>
185           <a href
186             ng-click="toggle_mod('clear_expired')">
187             <span ng-if="modifiers.clear_expired" 
188               class="label label-success">&#x2713;</span>
189             <span ng-if="!modifiers.clear_expired"
190               class="label label-warning">&#x2717;</span>
191             <span>[% l('Clear Holds Shelf') %]</span>
192           </a>
193         </li>
194         <li>
195           <a href
196             ng-click="toggle_mod('retarget_holds')">
197             <span ng-if="modifiers.retarget_holds" 
198               class="label label-success">&#x2713;</span>
199             <span ng-if="!modifiers.retarget_holds"
200               class="label label-warning">&#x2717;</span>
201             <span>[% l('Retarget Local Holds') %]</span>
202           </a>
203         </li>
204         <li>
205           <a href
206             ng-click="toggle_mod('retarget_holds_all')">
207             <span ng-if="modifiers.retarget_holds_all" 
208               class="label label-success">&#x2713;</span>
209             <span ng-if="!modifiers.retarget_holds_all"
210               class="label label-warning">&#x2717;</span>
211             <span>[% l('Retarget All Statuses') %]</span>
212           </a>
213         </li>
214         <li>
215           <a href
216             ng-click="toggle_mod('hold_as_transit')">
217             <span ng-if="modifiers.hold_as_transit" 
218               class="label label-success">&#x2713;</span>
219             <span ng-if="!modifiers.hold_as_transit"
220               class="label label-warning">&#x2717;</span>
221             <span>[% l('Capture Local Holds As Transits') %]</span>
222           </a>
223         </li>
224         <li>
225           <a href
226             ng-click="toggle_mod('manual_float')">
227             <span ng-if="modifiers.manual_float"
228               class="label label-success">&#x2713;</span>
229             <span ng-if="!modifiers.manual_float"
230               class="label label-warning">&#x2717;</span>
231             <span>[% l('Manual Floating Active') %]</span>
232           </a>
233         </li>
234       </ul>
235     </div><!-- btn grp -->
236   </div><!-- col -->
237 </div><!-- row -->
238