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