From 286dd68e2438ed3ad4d5b4601cac1edb39c017b0 Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Wed, 3 Jan 2018 16:56:10 -0800 Subject: [PATCH] DIV-627: All fields in Fact Sheet C properly persist --- .../question/06_children_your_children.html | 16 ++--- edivorce/fixtures/Question.json | 60 +++++++++++++++++++ 2 files changed, 69 insertions(+), 7 deletions(-) diff --git a/edivorce/apps/core/templates/question/06_children_your_children.html b/edivorce/apps/core/templates/question/06_children_your_children.html index 5323b476..155a6dd0 100644 --- a/edivorce/apps/core/templates/question/06_children_your_children.html +++ b/edivorce/apps/core/templates/question/06_children_your_children.html @@ -460,7 +460,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" value="0" class="fact-sheet-input" %} + {% input_field type="number" name="number_of_children_claimant" class="fact-sheet-input" %} @@ -491,7 +491,7 @@
- {% money_input_field name="spouse_annual_income" value="0.0" class="fact-sheet-input money" %} + {% money_input_field name="spouse_annual_income" class="fact-sheet-input money" %}
@@ -505,7 +505,7 @@
- {% money_input_field name="total_spouse_paid_child_support" value="0.0" class="fact-sheet-input money" %} + {% money_input_field name="total_spouse_paid_child_support" class="fact-sheet-input money claimants-child-support-paid" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-paid" data_delta_target_selector="input[name=difference_payment_amounts]" %}
@@ -537,7 +537,7 @@
- {% money_input_field name="claimant_annual_income" value="0.0" class="fact-sheet-input money" %} + {% money_input_field name="claimant_annual_income" class="fact-sheet-input money" %}
@@ -552,7 +552,7 @@
- {% money_input_field name="total_spouse_paid_child_support" value="0.0" class="fact-sheet-input money" %} + {% money_input_field name="total_paid_child_support" class="fact-sheet-input money claimants-child-support-paid" data_calc_delta="true" data_delta_term_selector=".claimants-child-support-paid" data_delta_target_selector="input[name=difference_payment_amounts]" %}
@@ -560,8 +560,10 @@ Difference between Guidelines table amounts - - + +
+ {% money_input_field name="difference_payment_amounts" class="fact-sheet-input" readonly="" %} +
diff --git a/edivorce/fixtures/Question.json b/edivorce/fixtures/Question.json index 44465768..d6d25a7d 100644 --- a/edivorce/fixtures/Question.json +++ b/edivorce/fixtures/Question.json @@ -1410,5 +1410,65 @@ }, "model": "core.question", "pk": "additional_relevant_spouse_children_info" +}, +{ + "fields": { + "name": "How many children spend more than 60 percent of their time with you and for whom you are asking for 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" +}, +{ + "fields": { + "name": "How do I calculate annual income?", + "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": "spouse_annual_income" +}, +{ + "fields": { + "name": "What is the monthly amount for child support payable by your spouse (as per Federal Child Support Tables)?", + "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": "total_spouse_paid_child_support" +}, +{ + "fields": { + "name": "How do I calculate annual income?", + "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": "claimant_annual_income" +}, +{ + "fields": { + "name": "What is the monthly amount for child support payable by you (as per Federal Child Support Tables)?", + "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": "total_paid_child_support" } ]