From 9a66220abde0b1346e6a1dd6cc1fdc4c1fc568e9 Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Thu, 8 Feb 2018 14:36:49 -0800 Subject: [PATCH] DIV-771: If not fact sheets should be shown, display a messsage to that effect --- edivorce/apps/core/static/js/main.js | 3 +++ .../core/templates/question/06_children_facts.html | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index 0a6afe46..d0b80d2f 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -675,6 +675,9 @@ $(function () { $(this).closest('td').removeClass('table-cell-active'); }); + if ($('.fact-sheets:visible').length === 0) { + $('#no_fact_sheet_notice').show(); + } // spinner // $('a.spinner').on('click', function (e) { diff --git a/edivorce/apps/core/templates/question/06_children_facts.html b/edivorce/apps/core/templates/question/06_children_facts.html index d4501693..ddc03d88 100644 --- a/edivorce/apps/core/templates/question/06_children_facts.html +++ b/edivorce/apps/core/templates/question/06_children_facts.html @@ -17,7 +17,7 @@ {% if 'None' not in special_extraordinary_expenses|load_json %} -
+

Special or Extraordinary Expenses (Fact Sheet A)

@@ -575,7 +575,7 @@ {% if children_of_marriage == 'YES' and 'NO' not in children_financial_support %} -
+

Child(ren) 19 Years or Older (Fact Sheet D)

Since you have previously indicated that you have a child/children 19 years of age or older for whom support @@ -645,7 +645,7 @@ {% if annual_gross_income|integer > 150000 %}

-
+

Income over $150,000 (Fact Sheet F)

Since you have previously indicated that the payor's income is over $150,000 you will need to provide @@ -857,6 +857,10 @@

{% endif %} + + {% endblock %}