From: Bill Erickson Date: Mon, 24 Mar 2014 15:57:55 +0000 (-0400) Subject: web staff autogrid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cb2528a864056382f5e8c39047874136e220e5c0;p=working%2FEvergreen.git web staff autogrid Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 b/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 index 0e575c2f18..ef601a8fa6 100644 --- a/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/parts/t_autogrid.tt2 @@ -6,8 +6,6 @@ background-color: rgb(248, 248, 248); } - .eg-grid-scroll {overflow-y:scroll; height: 600px} - .eg-grid-row { width: 100%; display: flex; @@ -70,9 +68,23 @@ padding-right: 1px; } + /* hack to make the header columns line up with the content columns + when the scroll bar is visible along the right side of the content + columns. TODO: if this varies enough by browser, we'll need to + calculate the width instead. */ + .eg-grid-scroll > .eg-grid-header-row, + .eg-grid-scroll > .eg-grid-conf-row { + padding-right: 15px; + } + .eg-grid-scroll > .eg-grid-content-body { + overflow-y:scroll; + height: 600px; /* TODO: configurable */ + } + -
+
@@ -128,25 +140,27 @@ -
-
- {{$index + 1 + list.pageOffset}} -
-
- - -
-
- {{list.fieldValue(item, column.name) | egGridvalueFilter:column}} +
+
+
+ {{$index + 1 + list.pageOffset}} +
+
+ + +
+
+ {{list.fieldValue(item, column.name) | egGridvalueFilter:column}} +
diff --git a/Open-ILS/src/templates/staff/test/t_autogrid.tt2 b/Open-ILS/src/templates/staff/test/t_autogrid.tt2 index a7546e3592..885c1d4475 100644 --- a/Open-ILS/src/templates/staff/test/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/test/t_autogrid.tt2 @@ -28,7 +28,6 @@ - diff --git a/Open-ILS/web/js/ui/default/staff/services/autogrid.js b/Open-ILS/web/js/ui/default/staff/services/autogrid.js index e7f74bd1c5..9bc5978f03 100644 --- a/Open-ILS/web/js/ui/default/staff/services/autogrid.js +++ b/Open-ILS/web/js/ui/default/staff/services/autogrid.js @@ -326,7 +326,12 @@ angular.module('egGridMod', ['egCoreMod', 'egListMod', 'egUiMod', 'ui.bootstrap' require : '^egGrid', restrict : 'AE', transclude : true, - scope : {name : '@', path : '@', label : '@', flex : '@'}, + scope : { + name : '@', // required; unique name + path : '@', // optional; flesh path + label : '@', // optional; display label + flex : '@', // optoinal; default flex width + }, template : '
', // NOOP template link : function(scope, element, attrs, egGridCtrl) { egGridCtrl.addColumn(scope);