]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/share/t_circ_exists_dialog.tt2
LP#1538691: Use items instead of copies
[Evergreen.git] / Open-ILS / src / templates / staff / circ / share / t_circ_exists_dialog.tt2
1 <form class="form-validated" novalidate ng-submit="ok()" name="form">
2   <div>
3     <div class="modal-content">
4       <div class="modal-header">
5         <button type="button" class="close" 
6           ng-click="cancel()" aria-hidden="true">&times;</button>
7         <h4 class="modal-title">[% l('Open Circulation') %]</h4>
8       </div>
9       <div class="modal-body">
10         <div ng-if="sameUser">
11           [% |l('{{circDate | date:$root.egDateFormat}}') %]
12           There is an open circulation on the requested item.  
13           This item was already checked out to this user on [_1].
14           [% END %]
15         </div>
16         <div ng-if="!sameUser">
17           [% |l('{{circDate | date:$root.egDateFormat}}') %]
18           There is an open circulation on the requested item.  
19           This item was checked out by another patron on [_1].
20           [% END %]
21         </div>
22       </div>
23       <div class="modal-footer">
24         <div class="form-group row">
25           <div class="col-md-3">
26             <label for="forgive-checkbox">[% l('Forgive fines?') %]</label>
27           </div>
28           <div class="col-md-1">
29             <input type="checkbox" class="checkbox"
30               id="forgive-checkbox" ng-model="args.forgive_fines"/>
31           </div>
32           <div class="col-md-8">
33             <input ng-if="!sameUser" type="submit" class="btn btn-primary" 
34                 value="[% l('Normal Checkin then Checkout') %]"/>
35             <input ng-if="sameUser" type="submit" class="btn btn-primary" 
36                 value="[% l('Renew') %]"/>
37             <button class="btn btn-warning" 
38                 ng-click="cancel($event)">[% l('Cancel') %]</button>
39         </div>
40       </div>
41     </div> <!-- modal-content -->
42   </div> <!-- modal-dialog -->
43 </form>