From 997e45aa27126442f1e3441a8b4d4e734a1fe365 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 26 Apr 2017 12:42:21 -0400 Subject: [PATCH] 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 --- .../templates/staff/circ/patron/t_edit.tt2 | 71 +++++++++---------- .../js/ui/default/staff/circ/patron/regctl.js | 5 +- 2 files changed, 35 insertions(+), 41 deletions(-) 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 -- 2.43.2