Browse Source

DIV-627: All fields in Fact Sheet C properly persist

pull/160/head
Benard Ebinu 8 years ago
parent
commit
286dd68e24
2 changed files with 69 additions and 7 deletions
  1. +9
    -7
      edivorce/apps/core/templates/question/06_children_your_children.html
  2. +60
    -0
      edivorce/fixtures/Question.json

+ 9
- 7
edivorce/apps/core/templates/question/06_children_your_children.html View File

@ -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? How many children spend more than 60 percent of their time with you and for whom you are asking for support?
</td> </td>
<td class="fact-sheet-answer table-bordered"> <td class="fact-sheet-answer table-bordered">
{% 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" %}
</td> </td>
</tr> </tr>
<tr> <tr>
@ -491,7 +491,7 @@
</td> </td>
<td class="fact-sheet-answer"> <td class="fact-sheet-answer">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% 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" %}
</div> </div>
</td> </td>
</tr> </tr>
@ -505,7 +505,7 @@
</td> </td>
<td class="fact-sheet-answer"> <td class="fact-sheet-answer">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% 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]" %}
</div> </div>
</td> </td>
</tr> </tr>
@ -537,7 +537,7 @@
</td> </td>
<td class="fact-sheet-answer"> <td class="fact-sheet-answer">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% 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" %}
</div> </div>
</td> </td>
</tr> </tr>
@ -552,7 +552,7 @@
</td> </td>
<td class="fact-sheet-answer"> <td class="fact-sheet-answer">
<div class="dollar-prefix"> <div class="dollar-prefix">
{% 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]" %}
</div> </div>
</td> </td>
</tr> </tr>
@ -560,8 +560,10 @@
<td class="fact-sheet-question"> <td class="fact-sheet-question">
Difference between Guidelines table amounts Difference between Guidelines table amounts
</td> </td>
<td class="fact-sheet-answer">
<label id="difference_payment_amounts"></label>
<td class="fact-sheet-answer" readonly>
<div class="dollar-prefix">
{% money_input_field name="difference_payment_amounts" class="fact-sheet-input" readonly="" %}
</div>
</td> </td>
</tr> </tr>
</tbody> </tbody>


+ 60
- 0
edivorce/fixtures/Question.json View File

@ -1410,5 +1410,65 @@
}, },
"model": "core.question", "model": "core.question",
"pk": "additional_relevant_spouse_children_info" "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"
} }
] ]

Loading…
Cancel
Save