Browse Source

DIV-541: Children income and expenses parent page in place

DIV-543: question about annual gross income along with fact sheet that should accompany
pull/160/head
Benard Ebinu 8 years ago
parent
commit
6ae58f3a98
6 changed files with 463 additions and 2 deletions
  1. +4
    -0
      edivorce/apps/core/static/js/functions.js
  2. +7
    -1
      edivorce/apps/core/static/js/main.js
  3. +5
    -0
      edivorce/apps/core/templates/partials/progress.html
  4. +334
    -0
      edivorce/apps/core/templates/question/06_children_income_expenses.html
  5. +7
    -1
      edivorce/apps/core/utils/question_step_mapping.py
  6. +106
    -0
      edivorce/fixtures/Question.json

+ 4
- 0
edivorce/apps/core/static/js/functions.js View File

@ -69,6 +69,10 @@ var showHideTargetId = function(el, id, related_id) {
if (related_id !== undefined){ if (related_id !== undefined){
$('#' + related_id).show(); $('#' + related_id).show();
} }
if (id === "#annual_gross_income") {
reveal($("input[name=agree_to_child_support_amount]:checked"));
}
} }
}; };


+ 7
- 1
edivorce/apps/core/static/js/main.js View File

@ -11,6 +11,12 @@ $('input:radio, input:checkbox').each(function () {
} }
}); });
$('input[type=number]').each(function() {
if ($(this).is(':visible')) {
reveal($(this));
}
});
$(window).load(function(){ $(window).load(function(){
$('#questions_modal, #terms_modal').modal('show'); $('#questions_modal, #terms_modal').modal('show');
}); });
@ -468,7 +474,7 @@ var mirrorOnChange = function() {
source_value = scaled_value.toFixed(2); 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); target_element.text(source_value);
} else { } else {
target_element.val(source_value); target_element.val(source_value);


+ 5
- 0
edivorce/apps/core/templates/partials/progress.html View File

@ -59,6 +59,11 @@
<span class="progress-content">What are you asking for</span> <span class="progress-content">What are you asking for</span>
</a> </a>
</li> </li>
<li>
<a href="{% url 'question_steps' 'children' 'income_expenses'%}" class="progress-question {% if sub_step == 'income_expenses' %} active {% endif %}">
<span class="progress-content">Income & expenses</span>
</a>
</li>
</ul> </ul>
{% if 'Spousal support' in want_which_orders|load_json or 'Spousal support' in which_orders.0.value|load_json %} {% if 'Spousal support' in want_which_orders|load_json or 'Spousal support' in which_orders.0.value|load_json %}


+ 334
- 0
edivorce/apps/core/templates/question/06_children_income_expenses.html View File

@ -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 %}
<h1><small>Step {% step_order step="children" %}:</small>Children - Income & expenses</h1>
<div class="question-well">
<h3>How will you and your spouse be calculating your income?</h3>
<p>Under the Federal Guidelines, you can do one of the following:</p>
</div>
<div class="question-well">
<h3>What is your
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Annual Gross Income Definition</b>
<p>
The Federal Guidelines use gross income (a person’s income before taxes and deductions)
because it is considered a fairer reflection of income. Net income allows many
discretionary deductions that can make it difficult to set fair support. Also, the child
support amounts found in the federal tables already account for taxes.
</p>
<p>
Source:
<a href='http://laws-lois.justice.gc.ca/eng/regulations/SOR-97-175/page-2.html#h-6' target='_blank'>Federal Child Support Guidelines</a>, Department of Justice
</p>
">
annual gross income <i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
as per the
<a href="http://laws-lois.justice.gc.ca/eng/regulations/SOR-97-175/page-2.html#h-6" target="_blank">
Federal Child Support Guidelines</a>
?
</h3>
<div class="dollar-prefix">
{% 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" %}
</div>
<div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false"
data-target="#collapseFedGuidelines" aria-controls="collapseFedGuidelines">
<div>
What are the Federal Child Support Guidelines?
</div>
</div>
<div class="collapse" id="collapseFedGuidelines">
<div>
<p>
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:
</p>
<ul>
<li>
to establish a fair standard of support for children so that they continue to benefit from both
parents’ incomes after the separation or divorce;
</li>
<li>
to reduce conflict and tension between parents by making the calculation of child support more
objective;
</li>
<li>
to ensure that parents and children in similar situations are treated the same; and
</li>
<li>
to make the legal process more efficient and encourage settlements by giving courts and parents guidance about child support.
</li>
</ul>
<p>
Source:
<a href="http://laws-lois.justice.gc.ca/eng/regulations/SOR-97-175/page-2.html#h-6" target="_blank">
Federal Child Support Guidelines
</a>, Department of Justice
</p>
</div>
</div>
<div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false"
data-target="#collapseIncome" aria-controls="collapseIncome">
<div>
How do I calculate annual income?
</div>
</div>
<div class="collapse" id="collapseIncome">
<div>
<p>
The Federal Child Support Guidelines, Step by Step Guide has a
<a href="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/w1-f1.html#s1" target="_blank">worksheet</a> you can use to help
calculate your annual income. Step by step instructions are also detailed in the
<a href="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/step5-etap5.html#h7" target="_blank">Step by Step Guide</a>.
</p>
</div>
</div>
</div>
<div class="question-well" id="fact_sheet_f" hidden>
<h1>Fact Sheet F Income over $150,000</h1>
<table class="table table-bordered">
<thead>
<tr>
<th></th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fact-sheet-question">
How many child(ren) are you asking for support?
</td>
<td class="fact-sheet-answer">
{% input_field type="number" name="number_children_seeking_support" class="fact-sheet-input" %}
</td>
</tr>
<tr>
<td class="fact-sheet-question">
<p>
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?
</p>
{% include "partials/inline_question_determine_amount_to_pay.html" with collapse_target_id="collapse_guideline_amount" %}
</td>
<td class="fact-sheet-answer">
{% 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" %}
</td>
</tr>
<tr>
<td class="fact-sheet-question">
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" %}
?
</td>
<td class="fact-sheet-answer">
{% input_field type="number" name="percent_income_over_high_income_limit" class="fact-sheet-input" %}
</td>
</tr>
<tr>
<td class="fact-sheet-question">
<p>
What is the child support amount to be paid on the portion of income over $150,000?
</p>
<div class="collapse-trigger collapsed" data-toggle="collapse" aria-expanded="false" data-target="#collapse_high_income_amounts" aria-controls="collapse_high_income_amounts">
<div>
How can I determine this amount?
</div>
</div>
<div class="collapse" id="collapse_high_income_amounts">
<div>
<p>
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:
</p>
<ul>
<li>
you can multiply the amount of income over $150,000 by the percentage shown in the
table for the province or territory where the paying parent lives; or
</li>
<li>
you can agree on an additional amount of support based on the condition, means,
needs and other circumstances of your children and your financial ability to
contribute.
</li>
</ul>
<p>
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:
</p>
<ul>
<li>Where the paying parent lives</li>
<li>Whether both parents live in the same province or territory, and</li>
<li>The number of children to be supported</li>
</ul>
<p>
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
</p>
</div>
</div>
</td>
<td class="fact-sheet-answer">
{% 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" %}
</td>
</tr>
<tr>
<td class="fact-sheet-question">
Guidelines table amount
</td>
<td class="fact-sheet-answer" readonly>
{% 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"%}
</td>
</tr>
</tbody>
</table>
<div class="question-well">
<p>
Do you and your spouse agree that $<span id="agreed_total_amount">{{ total_guideline_amount }}</span> is the child support amount?
</p>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="agree_to_child_support_amount" autocomplete="off" value="YES" data_target_id="enter_agreed_appropriate_amount" data_reveal_target="false" %} YES
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="agree_to_child_support_amount" autocomplete="off" value="NO" data_target_id="enter_agreed_appropriate_amount" data_reveal_target="true" %} NO
</label>
</div>
<div id="enter_agreed_appropriate_amount" hidden>
<p>
What is the amount that you and your spouse have agreed to?
</p>
<p>
That differs from the Child Support Guidelines table amount
</p>
<div>
<div class="dollar-prefix">
{% money_input_field name="agreed_child_support_amount" value="" class="fact-sheet-input money" %}
</div>
</div>
<p>
Why do you think the court should approve your proposed amount?
</p>
<p>
Discuss the conditions, means, needs and other circumstances of the child, and the financial ability of
each parent to support the child/children.
</p>
<div>
{% input_field type="textarea" name="reason_child_support_amount" class="fact-sheet-input form-control response-textarea" maxlength="1000" rows="6"%}
</div>
</div>
</div>
</div>
{% endblock %}
{% block formBack %}{% prev_step step='children' %}{% endblock %}
{% block formNext %}{% next_step step='children' %}{% endblock %}
{% block sidebarText %}
<p><strong>When you may need to adjust your income</strong></p>
<p>You may need to adjust your income if, for example:</p>
<ul>
<li>your income varies a lot from year to year;</li>
<li>you received a one-time payment, such as a bonus;</li>
<li>you live in another country where tax rates are very different;</li>
<li>you pay or receive spousal support;</li>
<li>you receive the Universal Child Care Benefit.</li>
</ul>
<p>
<a href="http://www.justice.gc.ca/eng/rp-pr/fl-lf/child-enfant/guide/w1-f1.html#s1" target="_blank">Worksheet 1</a>
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.
</p>
<p>
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
</p>
<p><strong>Undue Hardship</strong></p>
<p>
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.
</p>
<p>
For more information on
<a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/child_support.php" target="_blank">undue hardship</a>
refer to the Family Law of B.C. website.
</p>
<p><strong>What are special and extraordinary expenses?</strong></p>
<p>
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:
</p>
<ul>
<li>Whether the expense is needed to address your child's best interests, and</li>
<li>How reasonable the expense is, given your income and that of the other party.</li>
<li>
The amount that must be contributed is based on the proportionate incomes of the parents. For example, if
the payor earns twice as much as the recipient, the payor will be required to contribute twice as much.
</li>
</ul>
<p>
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.
</p>
<p>
More details on what are
<a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/child_support.php" target="_blank">
generally considered special or extraordinary expenses
</a>
can be found on the Family Law of B.C. website.
</p>
<p><strong>When the table amounts might not apply</strong></p>
<p>Judges (or masters) will consider making orders for amounts that are less than those shown in the tables if:</p>
<ul>
<li>the court agrees with the payor's claim for undue hardship (see below),</li>
<li>the child is 19 or over (and not in school full-time),</li>
<li>the payor is a step-parent,</li>
<li>one parent's income is over $150,000, or</li>
<li>one parent makes a claim for special or extraordinary expenses (see below).</li>
</ul>
<p>
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.
</p>
<p>
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:
</p>
<ul>
<li>Where the paying parent lives</li>
<li>Whether both parents live in the same province or territory, and</li>
<li>The number of children to be supported</li>
</ul>
<p><strong>Fed Child Support guidelines Inline Def/disclaimer</strong></p>
<p>
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.
</p>
{% endblock %}

+ 7
- 1
edivorce/apps/core/utils/question_step_mapping.py View File

@ -33,7 +33,13 @@ question_step_mapping = {
'marital_status_before_spouse', 'marital_status_before_spouse',
'when_were_you_live_married_like'], 'when_were_you_live_married_like'],
'your_separation': ['no_reconciliation_possible', 'no_collusion'], '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'], 'spousal_support': ['spouse_support_details', 'spouse_support_act'],
'property_and_debt': ['deal_with_property_debt', 'property_and_debt': ['deal_with_property_debt',
'how_to_divide_property_debt', 'how_to_divide_property_debt',


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

@ -856,5 +856,111 @@
}, },
"model": "core.question", "model": "core.question",
"pk": "child_support_act" "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"
} }
] ]

Loading…
Cancel
Save