2 <h4 class="pad-vert">[% l('Hold Details') %]</h4>
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>
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'"> - {{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()}}
23 <div class="flex-cell">[% l('Call Number') %]</div>
24 <div class="flex-cell well">{{volume.label()}}</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>
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>
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>
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>
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>
63 <li ng-class="{active : detail_tab == 'notify'}">
64 <a href ng-click="show_notify_tab()">
65 [% l('Staff Notifications') %]
69 <div class="tab-content">
70 <div class="tab-pane active">
72 <div ng-if="detail_tab == 'notes'">
74 <button class="btn btn-default" ng-click="new_note()">
78 <div class="row pad-vert" ng-repeat="note in hold.notes()">
79 <div class="col-md-12">
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>
98 <!-- hmm, not sure why the margin-left is needed.. the well? -->
99 <div class="col-md-12 well" style="margin-left:12px">
101 <div class="col-md-8">
102 <div class="">{{note.body()}}</div>
104 <div class="col-md-4">
105 <div class="pull-right">
106 <button ng-click="delete_note(note)" class="btn btn-warning">
116 </div><!-- notes tab content -->
118 <div ng-if="detail_tab == 'notify'">
120 <button class="btn btn-default" ng-click="new_notification()">
121 [% l('Add Record of Notification') %]
124 <div class="row pad-vert"
125 ng-repeat="notify in hold.notifications()">
126 <div class="col-md-12">
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>
137 <!-- hmm, not sure why the margin-left is needed.. the well? -->
138 <div class="col-md-12 well" style="margin-left:12px">
140 <div class="col-md-8">
141 <div class="">{{notify.note()}}</div>
148 </div><!-- notes tab content -->
150 </div><!-- tab pane -->
151 </div><!-- tab-content -->