LP#1538691: More changes to terminology
[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   }])
27 </script>
28 [% END %]
29
30 <!-- using native Bootstrap taps because of limitations
31 with angular-ui tabsets. it always defaults to making the
32 first tab active, so it can't be driven from the route
33 https://github.com/angular-ui/bootstrap/issues/910 
34 No JS is needed to drive the native tabs, since we're
35 changing routes with each tab selection anyway.
36 -->
37
38 <ul class="nav nav-tabs">
39   <li ng-class="{active : tab == 'pending'}">
40     <a href="./cat/bucket/copy/pending/{{bucketSvc.currentBucket.id()}}">
41         [% l('Pending Items') %]
42         <span ng-cloak>({{bucketSvc.pendingList.length}})</span>
43     </a>
44   </li>
45   <li ng-class="{active : tab == 'view'}">
46     <a href="./cat/bucket/copy/view/{{bucketSvc.currentBucket.id()}}">
47         [% l('Bucket View') %]
48         <span ng-cloak>({{bucketSvc.currentBucket.items().length}})</span>
49     </a>
50   </li>
51 </ul>
52 <div class="tab-content">
53   <div class="tab-pane active">
54
55     <!-- bucket info header -->
56     <div class="row">
57       <div class="col-md-6">
58         [% INCLUDE 'staff/cat/bucket/share/t_bucket_info.tt2' %]
59       </div>
60     </div>
61
62     <!-- bucket not accessible warning -->
63     <div class="col-md-10 col-md-offset-1" ng-show="forbidden">
64       <div class="alert alert-warning">
65         [% l('The selected bucket "{{bucketId}}" is not visible to this login.') %]
66       </div>
67     </div>
68
69     <div ng-view></div>
70   </div>
71 </div>
72
73 [% END %]