Skip to content

Commit d7d8ae7

Browse files
stephanielearymmorgannoble
authored andcommitted
LP2058263 Grid actions menu for Hold Groups
Adds a grid action menu for the Hold Groups screen with actions corresponding to the three tabs. Release-note: Adds grid actions menu for Hold Groups Signed-off-by: Stephanie Leary <[email protected]> Signed-off-by: Jane Sandberg <[email protected]> Signed-off-by: Michele Morgan <[email protected]>
1 parent 321a0ff commit d7d8ae7

File tree

2 files changed

+23
-0
lines changed
  • Open-ILS
    • src/templates/staff/cat/bucket/batch_hold
    • web/js/ui/default/staff/cat/bucket/batch_hold

2 files changed

+23
-0
lines changed

Open-ILS/src/templates/staff/cat/bucket/batch_hold/t_list.tt2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
<eg-grid-menu-item label="[% l('New Hold Group') %]" standalone="true"
1111
handler="openCreateBucketDialog"></eg-grid-menu-item>
1212

13+
<eg-grid-action label="[% l('Current Users') %]"
14+
handler="viewBucket" disabled="need_one_selected"></eg-grid-action>
15+
16+
<eg-grid-action label="[% l('Add User') %]"
17+
handler="addBucketUsers" disabled="need_one_selected"></eg-grid-action>
18+
19+
<eg-grid-action label="[% l('Manage Hold Group Events') %]"
20+
handler="manageBucketEvents" disabled="need_one_selected"></eg-grid-action>
21+
1322
<eg-grid-field path="id" required hidden></eg-grid-field>
1423
<eg-grid-field label="[% l('Name') %]" path="name" visible></eg-grid-field>
1524
<eg-grid-field label="[% l('Description') %]" path="description" visible></eg-grid-field>

Open-ILS/web/js/ui/default/staff/cat/bucket/batch_hold/app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,20 @@ function($scope, $location, $q, $timeout, $uibModal,
286286
$scope.tab + '/' + encodeURIComponent(id));
287287
}
288288

289+
$scope.viewBucket = function(buckets) {
290+
console.debug('viewBucket', buckets[buckets.length - 1].id);
291+
$location.path('cat/bucket/batch_hold/view/' + encodeURIComponent(buckets[0].id));
292+
}
293+
294+
$scope.addBucketUsers = function() {
295+
$location.path('/cat/bucket/batch_hold/pending/');
296+
}
297+
298+
$scope.manageBucketEvents = function(buckets) {
299+
console.debug('manageBucketEvents', buckets[buckets.length - 1].id);
300+
$location.path('cat/bucket/batch_hold/event/' + encodeURIComponent(buckets[0].id));
301+
}
302+
289303
$scope.addToBucket = function(recs) {
290304
if (recs.length == 0) return;
291305
bucketSvc.bucketNeedsRefresh = true;

0 commit comments

Comments
 (0)