]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/share/t_circ_exists_dialog.tt2
LP#1402797 Renew instead of in/out when the item is already checked out to the user
[working/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:'shortDate'}}") %]
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:'shortDate'}}") %]
18           There is an open circulation on the requested item.  
19           This copy was checked out by another patron on [_1].
20           [% END %]
21         </div>
22       </div>
23       <div class="modal-footer">
24         <input if="!sameUser" type="submit" class="btn btn-primary" 
25             value="[% l('Normal Checkin then Checkout') %]"/>
26         <input ng-if="sameUser" type="submit" class="btn btn-primary" 
27             value="[% l('Renew') %]"/>
28         <button class="btn btn-warning" 
29             ng-click="cancel($event)">[% l('Cancel') %]</button>
30       </div>
31     </div> <!-- modal-content -->
32   </div> <!-- modal-dialog -->
33 </form>