From 4edd6e01a62b81a932fd47d148493387e1917952 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 2 Mar 2016 22:12:49 -0500 Subject: [PATCH] Patron reg field validation (WIP) Signed-off-by: Bill Erickson --- .../templates/staff/circ/patron/reg_actions.tt2 | 2 ++ .../src/templates/staff/circ/patron/t_edit.tt2 | 38 ++++++++-------------- Open-ILS/src/templates/staff/css/circ.css.tt2 | 5 ++- .../web/js/ui/default/staff/circ/patron/regctl.js | 23 +++++++++++++ 4 files changed, 43 insertions(+), 25 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 b/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 index a533ba87f8..3640961bee 100644 --- a/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2 @@ -24,10 +24,12 @@
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 84e3ab5fca..76a24b1ccb 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -101,7 +101,6 @@ MACRO draw_form_input(cls, field, path, type, required) BLOCK; ng-required="field_required('[% cls %]', '[% field %]')" ng-blur="handle_field_changed([% base_obj %], '[% field %]')" ng-pattern="field_pattern('[% cls %]', '[% field %]')" - ng-class="{'patron-reg-invalid-field' : field_is_invalid('[% model %]')}" ng-model="[% model %]"/> [% END %] @@ -132,7 +131,8 @@ This div wraps the entire form so we can hide it until all needed data has been loaded. Setting ng-form and a name lets us refer to fields within the "form" by name for validation. --> -
+
@@ -142,13 +142,11 @@ within the "form" by name for validation.
@@ -167,7 +165,6 @@ within the "form" by name for validation.
@@ -275,7 +271,7 @@ within the "form" by name for validation.
[% draw_field_label('au', 'juvenile') %] - [% draw_form_input('au', 'alias', '', 'checkbox'); %] + [% draw_form_input('au', 'juvenile', '', 'checkbox'); %]
@@ -283,21 +279,13 @@ within the "form" by name for validation.
[% draw_field_label('au', 'ident_type') %]
-
- - -
+
@@ -406,14 +394,16 @@ within the "form" by name for validation. [% draw_field_label('au', 'profile') %]
-