From 1421fff80f40671f2cfdf29e1d55f2f36eeae58c Mon Sep 17 00:00:00 2001 From: Michael Olund Date: Thu, 5 Nov 2020 15:34:07 -0800 Subject: [PATCH] Reverted the change in DIV-1158 to make any_other_names field optional. It causes several other bugs --- .../apps/core/templates/question/02_claimant.html | 2 +- .../core/templates/question/03_respondent.html | 2 +- edivorce/apps/core/tests/test_step_completeness.py | 14 +++++++------- edivorce/apps/core/utils/user_response.py | 8 +++++--- edivorce/fixtures/Question.json | 4 ++-- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/edivorce/apps/core/templates/question/02_claimant.html b/edivorce/apps/core/templates/question/02_claimant.html index 09e0deaf..b2c94439 100644 --- a/edivorce/apps/core/templates/question/02_claimant.html +++ b/edivorce/apps/core/templates/question/02_claimant.html @@ -60,7 +60,7 @@
-

Do you go by any other names?{% include "partials/optional.html" %}

+

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

-

Does your spouse go by any other names?{% include "partials/optional.html" %}

+

Does your spouse go by any other names?{% if any_other_name_spouse_error %}{% include 'partials/required.html' %}{% endif %}