From ba5c6af1aaa01be9219ff6963798be9019cfda45 Mon Sep 17 00:00:00 2001 From: ariannedee Date: Tue, 4 Aug 2020 22:19:40 -0700 Subject: [PATCH] Add error highlight to question box and required label to questions --- .../core/templates/partials/required.html | 1 + .../core/templates/question/02_claimant.html | 26 ++++++++------- .../templates/question/03_respondent.html | 33 ++++++++++--------- .../core/templates/question/04_marriage.html | 29 +++++++++------- .../templates/question/05_separation.html | 14 ++++++-- 5 files changed, 61 insertions(+), 42 deletions(-) create mode 100644 edivorce/apps/core/templates/partials/required.html diff --git a/edivorce/apps/core/templates/partials/required.html b/edivorce/apps/core/templates/partials/required.html new file mode 100644 index 00000000..396cb4e5 --- /dev/null +++ b/edivorce/apps/core/templates/partials/required.html @@ -0,0 +1 @@ +* Required \ No newline at end of file diff --git a/edivorce/apps/core/templates/question/02_claimant.html b/edivorce/apps/core/templates/question/02_claimant.html index e48d0be9..d1ab2e6d 100644 --- a/edivorce/apps/core/templates/question/02_claimant.html +++ b/edivorce/apps/core/templates/question/02_claimant.html @@ -10,8 +10,9 @@

Step 2:Your Information (Claimant 1)

-
-

Please enter your name (as it appears on your marriage certificate or registration of marriage)

+
+

Please enter your name (as it appears on your marriage certificate or registration of marriage) + {% if name_you_error %}{% include 'partials/required.html' %}{% endif %}

{% input_field type="text" name="name_you" class="form-block input-wide response-textbox name" %} @@ -40,8 +41,8 @@
-
-

Do you go by any other names?

+
+

Do you go by any other names?{% if any_other_name_you_error %}{% include 'partials/required.html' %}{% endif %}