From: Bill Erickson Date: Mon, 29 Feb 2016 20:22:59 +0000 (-0500) Subject: Patron reg field validation (WIP) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=925a23d8529165728e7b94588001637f8d26795a;p=working%2FEvergreen.git Patron reg field validation (WIP) Signed-off-by: Bill Erickson --- 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 d9dda61747..5a0aa9d22b 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -112,6 +112,7 @@ within the "form" by name for validation. name="barcode" ng-model="patron.card.barcode" ng-class="{'patron-reg-invalid-field' : field_is_invalid('barcode')}" + ng-pattern="field_pattern('ac', 'barcode')" ng-required="true" focus-me="focus_bc" ng-change="field_modified()" @@ -139,6 +140,7 @@ within the "form" by name for validation. ng-required="true" focus-me="focus_usrname" ng-change="field_modified()" + ng-pattern="field_pattern('au', 'usrname')" ng-blur="handle_field_changed(patron, 'usrname')" class="form-control" ng-model="patron.usrname"/> @@ -158,7 +160,7 @@ within the "form" by name for validation. @@ -198,6 +202,9 @@ within the "form" by name for validation.
@@ -214,7 +221,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'second_given_name') %]
@@ -231,7 +241,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'family_name') %]
@@ -249,8 +262,11 @@ within the "form" by name for validation. [% draw_field_label('au', 'suffix') %]
@@ -268,8 +284,11 @@ within the "form" by name for validation. [% draw_field_label('au', 'alias') %]
@@ -287,8 +306,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'dob') %]
@@ -305,7 +326,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'juvenile') %]
@@ -341,7 +365,10 @@ within the "form" by name for validation.
@@ -358,7 +385,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'ident_value2') %]
@@ -377,7 +407,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'ident_value2') %]
@@ -398,8 +431,11 @@ within the "form" by name for validation. [% draw_field_label('au', 'day_phone') %]
@@ -424,7 +460,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'evening_phone') %]
@@ -450,7 +489,10 @@ within the "form" by name for validation. [% draw_field_label('au', 'other_phone') %]
@@ -627,6 +669,7 @@ within the "form" by name for validation.