diff --git a/edivorce/apps/core/static/js/functions.js b/edivorce/apps/core/static/js/functions.js index f6933db7..846ada0c 100644 --- a/edivorce/apps/core/static/js/functions.js +++ b/edivorce/apps/core/static/js/functions.js @@ -69,6 +69,10 @@ var showHideTargetId = function(el, id, related_id) { if (related_id !== undefined){ $('#' + related_id).show(); } + + if (id === "#annual_gross_income") { + reveal($("input[name=agree_to_child_support_amount]:checked")); + } } }; diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index 1d3b1902..23dc0785 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -11,6 +11,12 @@ $('input:radio, input:checkbox').each(function () { } }); +$('input[type=number]').each(function() { + if ($(this).is(':visible')) { + reveal($(this)); + } +}); + $(window).load(function(){ $('#questions_modal, #terms_modal').modal('show'); }); @@ -468,7 +474,7 @@ var mirrorOnChange = function() { source_value = scaled_value.toFixed(2); } } - if (target_element.is('div')) { + if (target_element.is('div') || target_element.is('span')) { target_element.text(source_value); } else { target_element.val(source_value); diff --git a/edivorce/apps/core/templates/partials/progress.html b/edivorce/apps/core/templates/partials/progress.html index 28089d07..f44ce307 100644 --- a/edivorce/apps/core/templates/partials/progress.html +++ b/edivorce/apps/core/templates/partials/progress.html @@ -59,6 +59,11 @@ What are you asking for +
Under the Federal Guidelines, you can do one of the following:
++ The Federal Guidelines are a set of rules and tables used to determine child support when parents + divorce. They are the law. Their main goals are: +
++ Source: + + Federal Child Support Guidelines + , Department of Justice +
++ The Federal Child Support Guidelines, Step by Step Guide has a + worksheet you can use to help + calculate your annual income. Step by step instructions are also detailed in the + Step by Step Guide. +
+| + | Amount | +
|---|---|
| + How many child(ren) are you asking for support? + | ++ {% input_field type="number" name="number_children_seeking_support" class="fact-sheet-input" %} + | +
|
+ + What is the + {% include "partials/tooltip_link_federal_child_support_guidelines.html" with reference_link="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/start-com.html#h11" link_text="Child Support Guidelines" %} + amount for $150,000? + + {% include "partials/inline_question_determine_amount_to_pay.html" with collapse_target_id="collapse_guideline_amount" %} + |
+ + {% input_field type="number" name="child_support_amount_under_high_income" class="fact-sheet-input guideline-amount" data_sum="true" data_sum_class="guideline-amount" data_sum_target_id="total_amount" %} + | +
| + What is the % of income over $150,000 from the + {% include "partials/tooltip_link_federal_child_support_guidelines.html" with reference_link="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/start-com.html#h11" link_text="Child Support Guidelines" %} + ? + | ++ {% input_field type="number" name="percent_income_over_high_income_limit" class="fact-sheet-input" %} + | +
|
+ + What is the child support amount to be paid on the portion of income over $150,000? + +
+
+
+ How can I determine this amount?
+
+
+
+
+
+ + The child support tables only show an amount for the first $150,000 of income. You have + two choices for determining how much child support should be paid on the portion of + income over $150,000: + +
+ To speak to someone in person, you can call the Department of Justice Canada's Family + Law Information Line at 1-888-373-2222. When you call, be ready to tell them: + +
+ Source: + {% include "partials/tooltip_link_federal_child_support_guidelines.html" with reference_link="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/start-com.html#h11" link_text="Federal Child Support Guidelines" %} + , Department of Justice + + |
+ + {% input_field type="number" name="amount_income_over_high_income_limit" class="fact-sheet-input guideline-amount" data_sum="true" data_sum_class="guideline-amount" data_sum_target_id="total_amount" %} + | +
| + Guidelines table amount + | ++ {% input_field type="number" name="total_guideline_amount" id="total_amount" class="fact-sheet-input" readonly="" data_mirror="true" data_mirror_target="#agreed_total_amount" data_mirror_broadcast_change="true"%} + | +
+ Do you and your spouse agree that ${{ total_guideline_amount }} is the child support amount? +
++ What is the amount that you and your spouse have agreed to? +
++ That differs from the Child Support Guidelines table amount +
++ Why do you think the court should approve your proposed amount? +
++ Discuss the conditions, means, needs and other circumstances of the child, and the financial ability of + each parent to support the child/children. +
+When you may need to adjust your income
+You may need to adjust your income if, for example:
++ Worksheet 1 + shows you how to adjust your income under the Federal Guidelines. The instructions for the worksheet give more + information on how to calculate income in a variety of situations. +
++ Source: + {% include "partials/tooltip_link_federal_child_support_guidelines.html" with reference_link="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/step5-etap5.html#h7" link_text="Federal Child Support Guidelines" %} + , Department of Justice +
+ +Undue Hardship
++ In any claim for hardship, the court also compares the standards of living of the two households. The court will + refuse a claim of undue hardship if it would result in the payor's household having a higher standard of living + than the recipient's. +
++ For more information on + undue hardship + refer to the Family Law of B.C. website. +
+ +What are special and extraordinary expenses?
++ The child support guidelines say that each parent is required to contribute to the special or extraordinary + expenses of raising the children (examples are listed below). These are expenses that go above and beyond what + is covered by the child support itself. In making decisions about what to spend on these special expenses, + consider: +
++ Either parent can claim special or extraordinary expenses. For example, if you're the payor and you're paying for + private school for your child who isn't living with you, you may still get the other parent to contribute. +
++ More details on what are + + generally considered special or extraordinary expenses + + can be found on the Family Law of B.C. website. +
+ +When the table amounts might not apply
+Judges (or masters) will consider making orders for amounts that are less than those shown in the tables if:
++ Also, children under 19 may no longer be eligible for child support if they get married or voluntarily leave + their parents' home for reasons other than family violence or intolerable living conditions. +
++ To speak to someone in person, you can call the Department of Justice Canada's Family Law Information Line at + 1-888-373-2222. When you call, be ready to tell them: +
+Fed Child Support guidelines Inline Def/disclaimer
++ This is a copy of an official work that is published by the Government of Canada and that this copy has not + been produced in affiliation with, or with the endorsement of the Government of Canada. +
+{% endblock %} \ No newline at end of file diff --git a/edivorce/apps/core/utils/question_step_mapping.py b/edivorce/apps/core/utils/question_step_mapping.py index 4da6fbbe..d1f6c58f 100644 --- a/edivorce/apps/core/utils/question_step_mapping.py +++ b/edivorce/apps/core/utils/question_step_mapping.py @@ -33,7 +33,13 @@ question_step_mapping = { 'marital_status_before_spouse', 'when_were_you_live_married_like'], 'your_separation': ['no_reconciliation_possible', 'no_collusion'], - 'your_children': ['claimant_children'], + 'your_children': ['claimant_children', + 'have_separation_agreement', + 'have_court_order', + 'order_respecting_arrangement', + 'order_for_child_support', + 'child_support_act', + ], 'spousal_support': ['spouse_support_details', 'spouse_support_act'], 'property_and_debt': ['deal_with_property_debt', 'how_to_divide_property_debt', diff --git a/edivorce/fixtures/Question.json b/edivorce/fixtures/Question.json index 293efd3b..58352fe4 100644 --- a/edivorce/fixtures/Question.json +++ b/edivorce/fixtures/Question.json @@ -856,5 +856,111 @@ }, "model": "core.question", "pk": "child_support_act" +}, +{ + "fields": { + "name": "What is your annual gross income as per the Federal Child Support Guidelines?", + "description": "For Step 6, Your children - Income & expenses", + "summary_order": 0, + "required": "Required" + }, + "model": "core.question", + "pk": "annual_gross_income" +}, +{ + "fields": { + "name": "How many child(ren) are you asking for support?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "number_children_seeking_support" +}, +{ + "fields": { + "name": "What is the Child Support Guidelines amount for $150,000?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "child_support_amount_under_high_income" +}, +{ + "fields": { + "name": "What is the % of income over $150,000 from the Child Support Guidlines?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "percent_income_over_high_income_limit" +}, +{ + "fields": { + "name": "What is the child support amount to be paid on the portion of income over $150,000?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "amount_income_over_high_income_limit" +}, +{ + "fields": { + "name": "Guidelines table amount", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "total_guideline_amount" +}, +{ + "fields": { + "name": "What is the amount that you and your spouse have agreed to?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "annual_gross_income", + "reveal_response": ">150000" + }, + "model": "core.question", + "pk": "agree_to_child_support_amount" +}, +{ + "fields": { + "name": "What is the amount that you and your spouse have agreed to?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "agree_to_child_support_amount", + "reveal_response": "NO" + }, + "model": "core.question", + "pk": "agreed_child_support_amount" +}, +{ + "fields": { + "name": "Why do you think the court should approve your proposed amount?", + "description": "Fact Sheet F", + "summary_order": 0, + "required": "Conditional", + "conditional_target": "agree_to_child_support_amount", + "reveal_response": "NO" + }, + "model": "core.question", + "pk": "reason_child_support_amount" } ]