]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/circ/share/t_hold_details.tt2
5edd4b355c8cf41ffa59371e39402e15009fc436
[Evergreen.git] / Open-ILS / src / templates / staff / circ / share / t_hold_details.tt2
1 <!-- hold info -->
2 <h4 class="pad-vert">[% l('Hold Details') %]</h4>
3 <div class="flex-row">
4   <div class="flex-cell">[% l('Request Date') %]</div>
5   <div class="flex-cell well">{{hold.request_time() | date:$root.egDateAndTimeFormat}}</div>
6   <div class="flex-cell">[% l('Capture Date') %]</div>
7   <div class="flex-cell well">{{hold.capture_time() | date:$root.egDateAndTimeFormat}}</div>
8   <div class="flex-cell">[% l('Available On') %]</div>
9   <div class="flex-cell well">{{hold.shelf_time() | date:$root.egDateAndTimeFormat}}</div>
10  </div>
11 <div class="flex-row">
12   <div class="flex-cell">[% l('Hold Type') %]</div>
13   <div class="flex-cell well">{{hold.hold_type()}}<span ng-if="hold.hold_type() == 'P'">&nbsp;-&nbsp;{{part.label()}}</span></div>
14   <!-- adding another cell messes up 3 column grid -->
15   <!-- <div ng-if="hold.hold_type() == 'P'" class="flex-cell">[% l('Part') %]</div> -->
16   <!-- <div ng-if="hold.hold_type() == 'P'" class="flex-cell well">{{part.label()}}</div> -->
17   <div class="flex-cell">[% l('Current Copy') %]</div>
18   <div class="flex-cell well">
19     <a href="./cat/item/{{hold.current_copy().id()}}" target="_self">
20       {{hold.current_copy().barcode()}}
21     </a>
22   </div>
23   <div class="flex-cell">[% l('Call Number') %]</div>
24   <div class="flex-cell well">{{volume.label()}}</div>
25 </div>
26 <div class="flex-row">
27   <div class="flex-cell">[% l('Pickup Lib') %]</div>
28   <div class="flex-cell well">{{hold.pickup_lib().shortname()}}</div>
29   <div class="flex-cell">[% l('Status') %]</div>
30   <div class="flex-cell well">{{status_string}}</div>
31   <div class="flex-cell">[% l('Behind Desk') %]</div>
32   <div class="flex-cell well">{{hold.behind_desk() == 't'}}</div>
33 </div>
34 <div class="flex-row">
35   <div class="flex-cell">[% l('Current Shelf Lib') %]</div>
36   <div class="flex-cell well">{{hold.current_shelf_lib().shortname()}}</div>
37   <div class="flex-cell">[% l('Current Copy Location') %]</div>
38   <div class="flex-cell well">{{hold.current_copy().location().name()}}</div>
39   <div class="flex-cell">[% l('Force Copy Quality') %]</div>
40   <div class="flex-cell well">{{hold.mint_condition() == 't'}}</div>
41 </div>
42 <div class="flex-row">
43   <div class="flex-cell">[% l('Email Notify') %]</div>
44   <div class="flex-cell well">{{hold.email_notify() == 't'}}</div>
45   <div class="flex-cell">[% l('Phone Notify') %]</div>
46   <div class="flex-cell well">{{hold.phone_notify()}}</div>
47   <div class="flex-cell">[% l('SMS Notify') %]</div>
48   <div class="flex-cell well">{{hold.sms_notify()}}</div>
49 </div>
50 <div class="flex-row">
51   <div class="flex-cell">[% l('Cancel Cause') %]</div>
52   <div class="flex-cell well">{{hold.cancel_cause().label()}}</div>
53   <div class="flex-cell">[% l('Cancel Time') %]</div>
54   <div class="flex-cell well">{{hold.cancel_time() | date:$root.egDateAndTimeFormat}}</div>
55   <div class="flex-cell">[% l('Cancel Note') %]</div>
56   <div class="flex-cell well">{{hold.cancel_note()}}</div>
57 </div>
58
59 <ul class="nav nav-tabs pad-vert" ng-init="detail_tab='notes'">
60   <li ng-class="{active : detail_tab == 'notes'}">
61     <a href ng-click="detail_tab = 'notes'">[% l('Notes') %]</a>
62   </li>
63   <li ng-class="{active : detail_tab == 'notify'}">
64     <a href ng-click="show_notify_tab()">
65       [% l('Staff Notifications') %]
66     </a>
67   </li>
68 </ul>
69 <div class="tab-content">
70   <div class="tab-pane active">
71
72     <div ng-if="detail_tab == 'notes'">
73       
74       <button class="btn btn-default" ng-click="new_note()">
75         [% l('New Note') %]
76       </button>
77
78       <div class="row pad-vert" ng-repeat="note in hold.notes()">
79         <div class="col-md-12">
80           <div class="row">
81             <div class="col-md-6 strong-text">{{note.title()}}</div>
82             <div class="col-md-6">
83               <div class="pull-right">
84                 <span class="pad-horiz alert alert-info" 
85                   ng-if="note.slip() == 't'">[% l('Print on Slip') %]</span>
86                 <span class="pad-horiz alert alert-warning" 
87                   ng-if="note.pub() == 't'">[% l('Patron Visible') %]</span>
88                 <span class="pad-horiz alert alert-info" 
89                   ng-if="note.pub() == 'f'">[% l('Staff Only') %]</span>
90                 <span class="pad-horiz alert alert-info" 
91                   ng-if="note.staff() == 't'">[% l('Staff Created') %]</span>
92                 <span class="pad-horiz alert alert-info" 
93                   ng-if="note.staff() == 'f'">[% l('Patron Created') %]</span>
94               </div>
95             </div>
96           </div>
97           <div class="row">
98             <!-- hmm, not sure why the margin-left is needed.. the well? -->
99             <div class="col-md-12 well" style="margin-left:12px">
100               <div class="row">
101                 <div class="col-md-8">
102                   <div class="">{{note.body()}}</div>
103                 </div>
104                 <div class="col-md-4">
105                   <div class="pull-right">
106                     <button ng-click="delete_note(note)" class="btn btn-warning">
107                       [% l('Delete') %]
108                     </button>
109                   </div>
110                 </div>
111               </div>
112             </div>
113           </div>
114         </div>
115       </div>
116     </div><!-- notes tab content -->
117
118     <div ng-if="detail_tab == 'notify'">
119       
120       <button class="btn btn-default" ng-click="new_notification()">
121         [% l('Add Record of Notification') %]
122       </button>
123
124       <div class="row pad-vert" 
125           ng-repeat="notify in hold.notifications()">
126         <div class="col-md-12">
127           <div class="row">
128             <div class="col-md-6 strong-text">{{notify.method()}}</div>
129             <div class="col-md-6">
130               <div class="pull-right">
131                 <span class="pad-horiz">{{notify.notify_time() | date:$root.egDateAndTimeFormat}}</span>
132                 <span>[% l('Created by [_1]', '{{notify.notify_staff().usrname()}}') %]</span>
133               </div>
134             </div>
135           </div>
136           <div class="row">
137             <!-- hmm, not sure why the margin-left is needed.. the well? -->
138             <div class="col-md-12 well" style="margin-left:12px">
139               <div class="row">
140                 <div class="col-md-8">
141                   <div class="">{{notify.note()}}</div>
142                 </div>
143               </div>
144             </div>
145           </div>
146         </div>
147       </div>
148     </div><!-- notes tab content -->
149
150   </div><!-- tab pane -->
151 </div><!-- tab-content -->
152