From: Bill Erickson Date: Wed, 26 Apr 2017 16:42:21 +0000 (-0400) Subject: LP#1618949 Required patron stats format repairs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=997e45aa27126442f1e3441a8b4d4e734a1fe365;p=evergreen%2Fpines.git LP#1618949 Required patron stats format repairs Fixes a broken div column class, which caused the patron stat cats to stretch across the page. Other div nesting/formatting fixes and additional inline code comments. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 073ccd4237..4f4cc6e43e 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -860,50 +860,43 @@ within the "form" by name for validation.
-
- -
-
- - - - - - -
-
- - + +
+ +
+
+
+
+ + +
-
- -
- -
-
+ +
+ +
+ +
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index d6e1c47236..02e9902606 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -1216,9 +1216,10 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , if ($scope.patron.isnew) set_new_patron_defaults(prs); + // Stat cats are fetched from open-ils.storage, where 't'==1 $scope.hasRequiredStatCat = prs.stat_cats.filter( function(cat) {return cat.required() == 1} ).length > 0; - + $scope.page_data_loaded = true; prs.set_field_patterns(field_patterns); @@ -1274,7 +1275,7 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore , 'stat_cats' : 1, 'surveys' : 1 }; - + // Returns true if the selected field should be visible // given the current required/suggested/all setting. // The visibility flag applied to each field as a result of calling