From e68aa3fef7ca0235cf58b553dee5dce744fc06b7 Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Sun, 25 Feb 2018 20:05:13 -0800 Subject: [PATCH] DIV-811: Adding missing field to fact sheet c in GUI and form 37 --- .../core/templates/pdf/partials/fact_sheet_c.html | 2 +- .../core/templates/question/06_children_facts.html | 10 +++++++++- edivorce/fixtures/Question.json | 12 ++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/edivorce/apps/core/templates/pdf/partials/fact_sheet_c.html b/edivorce/apps/core/templates/pdf/partials/fact_sheet_c.html index df4fd47a..664a72a6 100644 --- a/edivorce/apps/core/templates/pdf/partials/fact_sheet_c.html +++ b/edivorce/apps/core/templates/pdf/partials/fact_sheet_c.html @@ -41,7 +41,7 @@ D Number of children principally resident with Claimant 2 for whom support is claimed - {{ responses.number_of_children_claimant }} + {{ responses.number_of_children_claimant_spouse }} diff --git a/edivorce/apps/core/templates/question/06_children_facts.html b/edivorce/apps/core/templates/question/06_children_facts.html index 67568d76..5f3cbf8d 100644 --- a/edivorce/apps/core/templates/question/06_children_facts.html +++ b/edivorce/apps/core/templates/question/06_children_facts.html @@ -244,7 +244,7 @@ How many children spend more than 60 percent of their time with you and for whom you are asking for support? - {% input_field type="number" name="number_of_children_claimant" class="fact-sheet-input" %} + {% input_field type="number" name="number_of_children_claimant" class="positive-integer fact-sheet-input" %} @@ -293,6 +293,14 @@ + + + How many children spend more than 60 percent of their time with your spouse and for whom you are obliged to pay support? + + + {% input_field type="number" name="number_of_children_claimant_spouse" class="positive-integer fact-sheet-input" %} + +

Your annual income?

diff --git a/edivorce/fixtures/Question.json b/edivorce/fixtures/Question.json index 33419c1f..1ca81ac7 100644 --- a/edivorce/fixtures/Question.json +++ b/edivorce/fixtures/Question.json @@ -1423,6 +1423,18 @@ "model": "core.question", "pk": "number_of_children_claimant" }, +{ + "fields": { + "name": "How many children spend more than 60 percent of their time with your spouse and for whom you are obliged to pay support?", + "description": "For Step 6, Your children - Your children - Fact Sheet C Split Custody", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "claimant_children", + "reveal_response": "" + }, + "model": "core.question", + "pk": "number_of_children_claimant_spouse" +}, { "fields": { "name": "How do I calculate annual income?",