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 +
  • + + Income & expenses + +
  • {% if 'Spousal support' in want_which_orders|load_json or 'Spousal support' in which_orders.0.value|load_json %} diff --git a/edivorce/apps/core/templates/question/06_children_income_expenses.html b/edivorce/apps/core/templates/question/06_children_income_expenses.html new file mode 100644 index 00000000..64ce1d5d --- /dev/null +++ b/edivorce/apps/core/templates/question/06_children_income_expenses.html @@ -0,0 +1,334 @@ +{% extends 'base.html' %} +{% load input_field %} +{% load step_order %} + +{% block title %}{{ block.super }}: Your Children {% endblock %} + +{% block progress %}{% include "partials/progress.html" %}{% endblock %} + +{% block content %} +

    Step {% step_order step="children" %}:Children - Income & expenses

    + +
    +

    How will you and your spouse be calculating your income?

    +

    Under the Federal Guidelines, you can do one of the following:

    +
    + +
    +

    What is your + + annual gross income + + as per the + + Federal Child Support Guidelines + ? +

    +
    + {% money_input_field name="annual_gross_income" value="" class="money" data_target_id="annual_gross_income" data_related_id="fact_sheet_f" data_reveal_target="true" data_reveal_condition=">150000" %} +
    + + +
    +
    +

    + 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: +

    +
      +
    • + to establish a fair standard of support for children so that they continue to benefit from both + parents’ incomes after the separation or divorce; +
    • +
    • + to reduce conflict and tension between parents by making the calculation of child support more + objective; +
    • +
    • + to ensure that parents and children in similar situations are treated the same; and +
    • +
    • + to make the legal process more efficient and encourage settlements by giving courts and parents guidance about child support. +
    • +
    +

    + 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. +

    +
    +
    +
    + + + +{% endblock %} + + +{% block formBack %}{% prev_step step='children' %}{% endblock %} +{% block formNext %}{% next_step step='children' %}{% endblock %} + +{% block sidebarText %} +

    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" } ]