From d78e8a4f5e3a9fa501573e7f26bf69de566632ad Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 10 Aug 2016 12:10:58 -0400 Subject: [PATCH] start adding form validation to receipt template editor Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/css/style.css.tt2 | 7 +++++-- Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 | 8 +++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index fb06c0eedd..93881b6906 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -97,8 +97,11 @@ .form-validated input.ng-valid.ng-dirty { background-color: #78FA89; } -.form-validated input.ng-invalid-required { - background-color: #FACDCF; +.form-validated textarea.ng-invalid.ng-dirty { + background-color: #FA787E; +} +.form-validated textarea.ng-valid.ng-dirty { + background-color: #78FA89; } /* -------------------------------------------------------------------------- diff --git a/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 b/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 index cd8b74af83..fbb266d3a0 100644 --- a/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 +++ b/Open-ILS/src/templates/staff/reporter/t_edit_template.tt2 @@ -1,11 +1,12 @@ +
[% l('Template Name') %]
-
+
[% l('Documentation URL') %] @@ -20,15 +21,16 @@ [% l('Template Description') %]
-