]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/bucket/copy/index.tt2
LP#1841270: add Title Hold option in various places in staff client
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / bucket / copy / index.tt2
1 [%
2   WRAPPER "staff/base.tt2";
3   ctx.page_title = l("Item Buckets"); 
4   ctx.page_app = "egCatCopyBuckets";
5   ctx.page_ctrl = "CopyBucketCtrl";
6 %]
7
8 [% BLOCK APP_JS %]
9 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/grid.js"></script>
10 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/ui.js"></script>
11 <script src="[% ctx.media_prefix %]/js/ui/default/staff/cat/bucket/copy/app.js"></script>
12 <script>
13   angular.module('egCoreMod').run(['egStrings', function(s) {
14     s.CONFIRM_DELETE_COPY_BUCKET_ITEMS_FROM_CATALOG =
15       "[% l('Are you sure you want to delete selected items in bucket from catalog?') %]";
16     s.OVERRIDE_DELETE_COPY_BUCKET_ITEMS_FROM_CATALOG_TITLE =
17       "[% l('One or more items could not be deleted. Override?') %]";
18     s.OVERRIDE_DELETE_COPY_BUCKET_ITEMS_FROM_CATALOG_BODY =
19       "[% l('Reason(s) include: [_1]', '{{evt_desc}}') %]";
20     s.CONFIRM_TRANSFER_COPY_BUCKET_ITEMS_TO_MARKED_VOLUME =
21       "[% l('Are you sure you want to transfer selected items to the marked call number?') %]";
22     s.OVERRIDE_TRANSFER_COPY_BUCKET_ITEMS_TO_MARKED_VOLUME_TITLE =
23       "[% l('One or more items could not be transferred. Override?') %]";
24     s.OVERRIDE_TRANSFER_COPY_BUCKET_ITEMS_TO_MARKED_VOLUME_BODY =
25       "[% l('Reason(s) include: [_1]', '{{evt_desc}}') %]";
26     s.SUCCESS_HOLD_REQUEST =
27       "[% l('Hold successfully requested') %]";
28     s.FAILURE_HOLD_REQUEST =
29       "[% l('Hold not successfully requested') %]";
30   }])
31 </script>
32 [% END %]
33
34 <!-- using native Bootstrap taps because of limitations
35 with angular-ui tabsets. it always defaults to making the
36 first tab active, so it can't be driven from the route
37 https://github.com/angular-ui/bootstrap/issues/910 
38 No JS is needed to drive the native tabs, since we're
39 changing routes with each tab selection anyway.
40 -->
41
42 <ul class="nav nav-tabs">
43   <li ng-class="{active : tab == 'pending'}">
44     <a href="./cat/bucket/copy/pending/{{bucketSvc.currentBucket.id()}}">
45         [% l('Pending Items') %]
46         <span ng-cloak>({{bucketSvc.pendingList.length}})</span>
47     </a>
48   </li>
49   <li ng-class="{active : tab == 'view'}">
50     <a href="./cat/bucket/copy/view/{{bucketSvc.currentBucket.id()}}">
51         [% l('Bucket View') %]
52         <span ng-cloak>({{bucketSvc.currentBucket.items().length}})</span>
53     </a>
54   </li>
55 </ul>
56 <div class="tab-content">
57   <div class="tab-pane active">
58
59     <!-- bucket info header -->
60     <div class="row">
61       <div class="col-md-6">
62         [% INCLUDE 'staff/cat/bucket/share/t_bucket_info.tt2' %]
63       </div>
64     </div>
65
66     <!-- bucket not accessible warning -->
67     <div class="col-md-10 col-md-offset-1" ng-show="forbidden">
68       <div class="alert alert-warning">
69         [% l('The selected bucket "{{bucketId}}" is not visible to this login.') %]
70       </div>
71     </div>
72
73     <div ng-view></div>
74   </div>
75 </div>
76
77 [% END %]