From: Mike Rylander Date: Wed, 30 Mar 2016 17:32:23 +0000 (-0400) Subject: LP#1570091: webstaff: add tree control and a simple toaster for notifications X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c309391a11a21db0b55444ddc35c4bdefbc5138f;p=evergreen%2Fmasslnc.git LP#1570091: webstaff: add tree control and a simple toaster for notifications Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 9f92d3da2e..1e2c740e92 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -11,6 +11,10 @@ [% IF EXPAND_WEB_IMPORTS %] + + + + [% ELSE %] [% END %] diff --git a/Open-ILS/src/templates/staff/base_js.tt2 b/Open-ILS/src/templates/staff/base_js.tt2 index c2b1abba74..4b2861a6b2 100644 --- a/Open-ILS/src/templates/staff/base_js.tt2 +++ b/Open-ILS/src/templates/staff/base_js.tt2 @@ -10,6 +10,8 @@ + + diff --git a/Open-ILS/web/js/ui/default/staff/Gruntfile.js b/Open-ILS/web/js/ui/default/staff/Gruntfile.js index 2c0d289cd2..796c616112 100644 --- a/Open-ILS/web/js/ui/default/staff/Gruntfile.js +++ b/Open-ILS/web/js/ui/default/staff/Gruntfile.js @@ -24,6 +24,8 @@ module.exports = function(grunt) { 'bower_components/angular-hotkeys/build/hotkeys.min.js', 'bower_components/angular-file-saver/dist/angular-file-saver.bundle.min.js', 'bower_components/angular-location-update/angular-location-update.min.js', + 'bower_components/angular-tree-control/angular-tree-control.js', + 'bower_components/ngtoast/dist/ngToast.min.js', 'bower_components/jquery/dist/jquery.min.js', ] }] @@ -37,7 +39,11 @@ module.exports = function(grunt) { expand : true, src : [ 'bower_components/angular-hotkeys/build/hotkeys.min.css', - 'bower_components/bootstrap/dist/css/bootstrap.min.css' + 'bower_components/bootstrap/dist/css/bootstrap.min.css', + 'bower_components/ngtoast/dist/ngToast.min.css', + 'bower_components/ngtoast/dist/ngToast-animations.min.css', + 'bower_components/angular-tree-control/css/tree-control.css', + 'bower_components/angular-tree-control/css/tree-control-attribute.css', ] }] }, @@ -65,7 +71,11 @@ module.exports = function(grunt) { files: { 'build/css/evergreen-staff-client-deps.<%= pkg.version %>.min.css' : [ 'build/css/hotkeys.min.css', - 'build/css/bootstrap.min.css' + 'build/css/bootstrap.min.css', + 'build/css/ngToast.min.css', + 'build/css/ngToast-animations.min.css', + 'build/css/tree-control.css', + 'build/css/tree-control-attribute.css', ] } } @@ -86,6 +96,8 @@ module.exports = function(grunt) { 'build/js/ui-bootstrap.min.js', 'build/js/ui-bootstrap-tpls.min.js', 'build/js/hotkeys.min.js', + 'build/js/angular-tree-control.js', + 'build/js/ngToast.min.js', // NOTE: OpenSRF must be installed '/openils/lib/javascript/JSON_v1.js', '/openils/lib/javascript/opensrf.js', diff --git a/Open-ILS/web/js/ui/default/staff/bower.json b/Open-ILS/web/js/ui/default/staff/bower.json index fd1c566719..0e9414ee8c 100644 --- a/Open-ILS/web/js/ui/default/staff/bower.json +++ b/Open-ILS/web/js/ui/default/staff/bower.json @@ -28,6 +28,8 @@ "dependencies": { "angular-hotkeys": "chieffancypants/angular-hotkeys#~1.3.0", "angular-location-update": "./extern/angular-location-update/", - "angular-file-saver": "~1.0.2" + "angular-file-saver": "~1.0.2", + "ngtoast": "~2.0.0", + "angular-tree-control": "~0.2.23" } }