Browse Source

DIV-545: Claimant and spouse entered agreement question

pull/160/head
Benard Ebinu 8 years ago
parent
commit
d35f4eaae1
8 changed files with 547 additions and 37 deletions
  1. +3
    -3
      edivorce/apps/core/static/css/main.css.map
  2. +42
    -2
      edivorce/apps/core/static/js/main.js
  3. +4
    -4
      edivorce/apps/core/templates/partials/fact_sheet_excessive_debt.html
  4. +1
    -1
      edivorce/apps/core/templates/prequalification/step_04.html
  5. +441
    -7
      edivorce/apps/core/templates/question/06_children_income_expenses.html
  6. +6
    -3
      edivorce/apps/core/templatetags/input_field.py
  7. +2
    -1
      edivorce/apps/core/utils/question_step_mapping.py
  8. +48
    -16
      edivorce/fixtures/Question.json

+ 3
- 3
edivorce/apps/core/static/css/main.css.map
File diff suppressed because it is too large
View File


+ 42
- 2
edivorce/apps/core/static/js/main.js View File

@ -53,6 +53,13 @@ $(function () {
// contents have changed.
$('[data-mirror="true"]').on('change', mirrorOnChange);
// All of the input fields in the row will be saved as a single object
// via an ajax call to the server.
// data-save_row=[true|false] - indicates whether all columns in row that contain an input field will
// be persisted to the server.
$('[data-save_row="true"]').on('change', saveListControlRow);
// Only close Terms and Conditions when user check the I agree checkbox
$('#terms_agree_button').on('click', function() {
$('#terms_warning').remove();
@ -123,7 +130,7 @@ $(function () {
var listControlGroups = [
{
table_selector: "#debt_table",
table_selector: "#claimant_debts",
add_button_selector: "#btn_add_debt",
delete_button_selector: ".btn-delete-debt",
input_field_selector: ".debt-input-field",
@ -435,6 +442,33 @@ $(function () {
});
});
var saveListControlRow = function(tableId) {
var payload = [];
var saveSelector = $(this).attr('data-save_select');
var saveKey = null;
var tableRows = null;
if (!tableId.hasOwnProperty('originalEvent')) {
saveKey = tableId;
tableRows = $('#'+tableId).find('tbody:first').find('tr:gt(0)');
} else {
saveKey = $(this).closest('table').prop('id');
tableRows = $(this).closest('tbody').find('tr:gt(0)');
}
tableRows.each(function() {
var item = {};
$(this).find(saveSelector).each(function() {
item[$(this).prop('name')] = $(this).val();
});
payload.push(item);
});
var jsonPayload = JSON.stringify(payload);
ajaxCall(saveKey, jsonPayload);
};
var replaceSuffix = function(str, suffix) {
if (str !== undefined && str.lastIndexOf('_') !== -1) {
str = str.substr(0, str.lastIndexOf('_'));
@ -510,7 +544,7 @@ var deleteAddedTableRow = function(element) {
// If the element being removed contained the sum attribute, cache the addend
// class and sum target id so that can remove the element then recalculate the
// total with the remaining elements.
var sumTargetElement = $(this).closest('tr').find('[data-sum="true"]');
var sumTargetElement = element.closest('tr').find('[data-sum="true"]');
var sumClass = null;
var sumTargetId = null;
if (sumTargetElement !== undefined) {
@ -518,10 +552,15 @@ var deleteAddedTableRow = function(element) {
sumTargetId = sumTargetElement.data('sum_target_id');
}
var tableId = element.closest('table').prop('id');
element.closest('tr').remove();
if (sumClass && sumTargetId) {
sumFields('.' + sumClass, '#' + sumTargetId);
}
// we want to save the list if we remove an item.
$.proxy(saveListControlRow, element)(tableId);
};
var registerTableRowAddRemoveHandlers = function(settings) {
@ -553,6 +592,7 @@ var registerTableRowAddRemoveHandlers = function(settings) {
var sumTargetId = $(this).data('sum_target_id');
sumFields('.' + sumClass, '#' + sumTargetId);
});
newRow.find('[data-save_row="true"]').on('change', saveListControlRow);
$(settings.table_selector).find('tbody:first').append(newRow);


+ 4
- 4
edivorce/apps/core/templates/partials/fact_sheet_excessive_debt.html View File

@ -1,19 +1,19 @@
{% load input_field %}
<td class="fact-sheet-answer table-bordered">
{% input_field type="text" name="debt_name" value=debt_name maxlength="100" multiple='true' class="fact-sheet-input debt-input-field" placeholder="Name of creditor" %}
{% input_field type="text" name="debt_name" value=debt_name maxlength="100" multiple='true' class="fact-sheet-input debt-input-field" placeholder="Name of creditor" data_save_row="true" data_save_select=".debt-input-field" data_skip_ajax="true" %}
</td>
<td class="fact-sheet-answer table-bordered">
{% input_field type="textarea" name="debt_terms" value=debt_terms maxlength="250" rows="10" multiple='true' class="fact-sheet-input debt-input-field" placeholder="For example, how much is owed, what is the rate of interest, when it must be repaid." %}
{% input_field type="textarea" name="debt_terms" value=debt_terms maxlength="250" rows="10" multiple='true' class="fact-sheet-input debt-input-field" placeholder="" data_save_row="true" data_save_select=".debt-input-field" data_skip_ajax="true" %}
</td>
<td class="fact-sheet-answer table-bordered">
<div class="dollar-prefix">
{% money_input_field name="debt_monthly_amount" value=debt_monthly_amount multiple='true' class="fact-sheet-input money debt-input-field" placeholder="00.00" %}
{% money_input_field name="debt_monthly_amount" value=debt_monthly_amount multiple='true' class="fact-sheet-input money debt-input-field" placeholder="00.00" data_save_row="true" data_save_select=".debt-input-field" data_skip_ajax="true" %}
</div>
</td>
{% if not exclude_delete_button %}
<td class="fact-sheet-button">
<div class="form-group">
<input type="button" class="btn btn-danger btn-delete-debt form-control" tabindex="-1" value="Delete" />
<input type="button" class="btn btn-danger btn-delete-debt form-control" tabindex="-1" value="Delete" data-save_select=".debt-input-field" />
</div>
</td>
{% endif %}

+ 1
- 1
edivorce/apps/core/templates/prequalification/step_04.html View File

@ -125,7 +125,7 @@
</div>
<div class="information-message bg-danger has_children_message" id="has_children_message" hidden>
<p><strong>Asking for child support under provincial or supreme court.</strong></p>
<p><strong>Asking for child support under provincial or supreme court.</strong></p>
<p>
If you will be asking for parenting and support issues, you can choose between the
<a href="http://wiki.clicklaw.bc.ca/index.php?title=Divorce Act" target="_blank">Divorce Act</a>


+ 441
- 7
edivorce/apps/core/templates/question/06_children_income_expenses.html View File

@ -19,7 +19,7 @@
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Annual Gross Income Definition</b>
<b>annual gross income</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
@ -72,9 +72,8 @@
</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
{% 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#h12" link_text="Federal Child Support Guidelines" %}
, Department of Justice
</p>
</div>
</div>
@ -95,9 +94,8 @@
</p>
</div>
</div>
</div>
<div class="question-well" id="you_fact_sheet_f" hidden>
<div class="question-well" id="you_fact_sheet_f" hidden>
<h1>Fact Sheet F Income over $150,000</h1>
<table class="table table-bordered">
<thead>
@ -237,12 +235,14 @@
</div>
</div>
</div>
<div class="question-well">
<h3>What is your spouse's
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>Annual Gross Income Definition</b>
<b>annual gross income</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
@ -459,6 +459,358 @@
</div>
<div class="question-well">
<h3>
My spouse and I have entered into an agreement as to income pursuant to section 15 (2) of the Guidelines, a
copy of which agreement is attached.
</h3>
<p>
For this option you will need to provide the court with another form called the
<a href="https://www2.gov.bc.ca/assets/gov/law-crime-and-justice/courthouse-services/court-files-records/court-forms/supreme-family/f9.pdf?forcedownload=true"
target="_blank">Agreement as to Annual Income (F9)</a>.
</p>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="you_spouse_entered_agreement" autocomplete="off" value="YES" data_target_id="agreement_warning_message" data_reveal_target="true" %} YES
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="you_spouse_entered_agreement" autocomplete="off" value="NO" data_target_id="agreement_warning_message" data_reveal_target="false" %} NO
</label>
</div>
<div class="information-message bg-danger" id="agreement_warning_message" hidden>
<p>
You must provide the court with an Agreement as to Annual Income (form 9). This form is not
available in this online divorce assistant but you can obtain the
<a href="https://www2.gov.bc.ca/assets/gov/law-crime-and-justice/courthouse-services/court-files-records/court-forms/supreme-family/f9.pdf?forcedownload=true"
target="_blank">F9 form</a>
on the B.C. Government Courthouse Services website.
</p>
<p>If you file an Agreement as to Annual Income, you must also file:</p>
<ul>
<li>A copy of the most recent personal income tax return filed by the payor, including any attachments.</li>
<li>
A copy of the most recent notice of assessment or reassessment that the Canada Revenue Agency has
issued to the payor.
</li>
</ul>
</div>
</div>
<div class="question-well">
<h3>Are you or your spouse claiming undue hardship?</h3>
<p>
The Child Support Guidelines tables contain the base amounts for child support. If you our your spouse feel
that the child support amount will not leave enough money, you can claim that you will suffer
<span class="tooltip-link"
data-toggle="tooltip" data-placement="right" data-html="true"
title="
<b>undue hardship</b>
<p>
Circumstances that show the amount of child support under the child support guidelines is too
high or low. Must create &quot;undue&quot; (exceptional, excessive or disproportionate) difficulty
for the person making the claim.
</p>
<p>
A term used by the Child Support Guidelines to describe circumstances when payment of the table
amount of child support would cause financial difficulty for the payor or the recipient, potentially
justifying an award of support in an amount different than the table amount. See &quot;child support,&quot;
&quot;Child Support Guidelines&quot; and &quot;table amount.&quot;
</p>
">
undue hardship<i class="fa fa-question-circle" aria-hidden="true"></i>.
</span>
</p>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="claiming_undue_hardship" autocomplete="off" value="YES" data_target_id="fact_sheet_e" data_reveal_target="true" %} YES
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="claiming_undue_hardship" autocomplete="off" value="NO" data_target_id="undue_amount_question" data_reveal_target="true" %} NO
</label>
</div>
<div id="fact_sheet_e" class="question-well" hidden>
<h1>Fact Sheet E Undue Hardship</h1>
<p><strong>Unusual or excessive debts</strong></p>
<p>
What are the unusual or excessive debts that you owe? These are debts that were taken on to support the family
before you separated (e.g. student loans). The debt can also be due to earning a living (e.g. vehicle,
specialized equipment).
</p>
<table id="claimant_debts" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">Debt name</th>
<th class="table-bordered">What are the terms of this debt?</th>
<th class="table-bordered">Monthly amount</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="debt-group" hidden>
{% include "partials/fact_sheet_excessive_debt.html" with debt_monthly_amount=0%}
</tr>
{% if claimant_debts and claimant_debts != '[]' %}
{% multiple_values_to_list source=claimant_debts as debts %}
{% for debt in debts %}
<tr class="debt-item-row">
{% include "partials/fact_sheet_excessive_debt.html" with debt_name=debt.debt_name debt_terms=debt.debt_terms debt_monthly_amount=debt.debt_monthly_amount %}
</tr>
{% endfor %}
{% else %}
<tr class="debt-item-row">
{% include "partials/fact_sheet_excessive_debt.html" with debt_monthly_amount=0 exclude_delete_button=True%}
</tr>
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<div>
<input type="button" id="btn_add_debt" class="btn btn-success" value="Add Debt"/>
</div>
<br />
<p><strong>Unusually high expenses for parenting time, contact with, or access to a child.</strong></p>
<p>
For example, airfare and accommodation to visit the child in another city.
</p>
<table id="expense_table" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">What is the expense</th>
<th class="table-bordered">Amount</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="expense-item-row">
{% include "partials/fact_sheet_expense.html" with expense_amount=0 exclude_delete_button=True %}
</tr>
<tr class="expense-group" hidden>
{% include "partials/fact_sheet_expense.html" with expense_amount=0%}
</tr>
{% if list_of_expenses and list_of_expenses != '[]' %}
{% multiple_values_to_list source=list_of_expenses as expenses %}
{% for name, amount in expenses %}
<tr class="expense-item-row">
{% include "partials/fact_sheet_expense.html" with expense_name=name expense_amount=amount %}
</tr>
{% endfor %}
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td class="list-builder-button">
<div class="form-group">
<input type="button" id="btn_add_expense" class="btn btn-success" value="Add Expense"/>
</div>
</td>
</tr>
</tbody>
</table>
<br />
<p><strong>Supporting another person</strong></p>
<p>
Legal duty to support any other person, such as a former spouse or a new spouse who is too ill or disabled to be able to support himself or herself.
</p>
<table id="supporting_non_dependent_table" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">Name of person</th>
<th class="table-bordered">Relationship</th>
<th class="table-bordered">Describe reason(s) for support</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="supporting-non-dependent-item-row">
{% include "partials/fact_sheet_supporting_person.html" with exclude_delete_button=True name_field="supporting_non_dependents_name" relationship_field="supporting_non_dependent_relationship" reason_field="supporting_non_dependent_reason" input_field_class="supporting-non-dependent-input-field" delete_button_class="btn-delete-supporting-non-dependent"%}
</tr>
<tr class="supporting-non-dependent-group" hidden>
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_non_dependents_name" relationship_field="supporting_non_dependent_relationship" reason_field="supporting_non_dependent_reason" input_field_class="supporting-non-dependent-input-field" delete_button_class="btn-delete-supporting-non-dependent" %}
</tr>
{% if list_of_supporting_non_dependents and list_of_supporting_non_dependents != '[]' %}
{% multiple_values_to_list source=list_of_supporting_non_dependents as supporting_non_dependents %}
{% for name, relationship, reason in supporting_non_dependents %}
<tr class="supporting-non-dependent-item-row">
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_non_dependents_name" relationship_field="supporting_non_dependent_relationship" reason_field="supporting_non_dependent_reason" input_field_class="supporting-non-dependent-input-field" delete_button_class="btn-delete-supporting-non-dependent" name=name relationship=relationship reason=reason %}
</tr>
{% endfor %}
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td class="list-builder-button">
<div class="form-group">
<input type="button" id="btn_add_supporting_non_dependent" class="btn btn-success" value="Add Person"/>
</div>
</td>
</tr>
</tbody>
</table>
<br />
<p><strong>Supporting dependent child/children from another relationship.</strong></p>
<p>
List the names of any other children for whom you have a legal duty to make support payments to.
Do not include the names of any children for whom you are asking for support for as a part of this
divorce application.
</p>
<table id="supporting_dependent_table" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">Child's name</th>
<th class="table-bordered">Relationship</th>
<th class="table-bordered">Describe reason(s) for support</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="supporting-dependent-item-row">
{% include "partials/fact_sheet_supporting_person.html" with exclude_delete_button=True name_field="supporting_dependents_name" relationship_field="supporting_dependent_relationship" reason_field="supporting_dependent_reason" input_field_class="supporting-dependent-input-field" delete_button_class="btn-delete-supporting-dependent"%}
</tr>
<tr class="supporting-dependent-group" hidden>
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_dependents_name" relationship_field="supporting_dependent_relationship" reason_field="supporting_dependent_reason" input_field_class="supporting-dependent-input-field" delete_button_class="btn-delete-supporting-dependent" %}
</tr>
{% if list_of_supporting_dependents and list_of_supporting_dependents != '[]' %}
{% multiple_values_to_list source=list_of_supporting_dependents as supporting_dependents %}
{% for name, relationship, reason in supporting_dependents %}
<tr class="supporting-dependent-item-row">
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_dependents_name" relationship_field="supporting_dependent_relationship" reason_field="supporting_dependent_reason" input_field_class="supporting-dependent-input-field" delete_button_class="btn-delete-supporting-dependent" name=name relationship=relationship reason=reason %}
</tr>
{% endfor %}
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td class="list-builder-button">
<div class="form-group">
<input type="button" id="btn_add_supporting_dependent" class="btn btn-success" value="Add Person"/>
</div>
</td>
</tr>
</tbody>
</table>
<br />
<p><strong>Support for a disabled or ill person.</strong></p>
<table id="supporting_disabled_table" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">Child's name</th>
<th class="table-bordered">Relationship</th>
<th class="table-bordered">Describe reason(s) for support</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="supporting-disabled-item-row">
{% include "partials/fact_sheet_supporting_person.html" with exclude_delete_button=True name_field="supporting_disabled_name" relationship_field="supporting_disabled_relationship" reason_field="supporting_disabled_reason" input_field_class="supporting-disabled-input-field" delete_button_class="btn-delete-supporting-disabled"%}
</tr>
<tr class="supporting-disabled-group" hidden>
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_disabled_name" relationship_field="supporting_disabled_relationship" reason_field="supporting_disabled_reason" input_field_class="supporting-disabled-input-field" delete_button_class="btn-delete-supporting-disabled" %}
</tr>
{% if list_of_supporting_disabled and list_of_supporting_disabled != '[]' %}
{% multiple_values_to_list source=list_of_supporting_disabled as supporting_disabled %}
{% for name, relationship, reason in supporting_disabled %}
<tr class="supporting-disabled-item-row">
{% include "partials/fact_sheet_supporting_person.html" with name_field="supporting_disabled_name" relationship_field="supporting_disabled_relationship" reason_field="supporting_disabled_reason" input_field_class="supporting-disabled-input-field" delete_button_class="btn-delete-supporting-disabled" name=name relationship=relationship reason=reason %}
</tr>
{% endfor %}
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td class="list-builder-button">
<div class="form-group">
<input type="button" id="btn_add_supporting_disabled" class="btn btn-success" value="Add Person"/>
</div>
</td>
</tr>
</tbody>
</table>
<p>Other undue hardship circumstances</p>
{% input_field type="textarea" name="undue_hardship" value="" maxlength="500" multiple='true' class="fact-sheet-input form-control" placeholder="" %}
<br />
<p><strong>Income of Other Persons in Household</strong></p>
<table id="income_others_table" class="list-builder">
<thead>
<tr class="list-builder-header">
<th class="table-bordered">Name of person</th>
<th class="table-bordered">Annual income</th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="income-others-item-row">
{% include "partials/fact_sheet_income_others.html" with exclude_delete_button=True income_others_amount=0%}
</tr>
<tr class="income-others-group" hidden>
{% include "partials/fact_sheet_income_others.html" with income_others_amount=0%}
</tr>
{% if list_of_income_others and list_of_income_others != '[]' %}
{% multiple_values_to_list source=list_of_income_others as incomes %}
{% for name, amount in incomes %}
<tr class="income-others-item-row">
{% include "partials/fact_sheet_income_others.html" with income_others_name=name income_others_amount=amount %}
</tr>
{% endfor %}
{% endif %}
</tbody>
<tbody>
<tr>
<td></td>
<td></td>
<td class="list-builder-button">
<div class="form-group">
<input type="button" id="btn_add_income_others" class="btn btn-success" value="Add Person"/>
</div>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Total</td>
<td>
<p id="total_income_others"></p>
</td>
</tr>
</tbody>
</table>
</div>
<div id="undue_amount_question" hidden>
</div>
</div>
{% endblock %}
@ -553,4 +905,86 @@
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>
<div id="fact-sheet-f-side-bar">
<p><strong>Whose Income is Needed </strong></p>
<p>
If the paying parent earns more than $150,000 per year, you may need to calculate both incomes.
The Federal Guidelines provide two options:
</p>
<p>
You can use the tables to determine the child support amount for the first $150,000. Then add the percentage
listed in the tables for the portion of income over $150,000. If you choose this option, you would only need
to calculate the paying parent’s income.
</p>
<p>
or
</p>
<p>
You can use the tables to determine the child support amount for the first $150,000. You can then determine an
amount for the portion of income over $150,000 by looking at the condition, means, needs and other circumstances
of the child and the financial ability of each of you to contribute. If you choose this option, you would need
to calculate both incomes.
</p>
<p>
In some cases:
</p>
<ul>
<li>
You may need to calculate your child’s income—for example, if the child is over the age of majority and you
are taking his or her financial means into consideration to determine a child support amount.
</li>
<li>
You may need to calculate the income of every member of both households to compare the standards of living
if either of you is claiming undue hardship.
</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/step5-etap5.html#h7" link_text="Federal Child Support Guidelines" %}
Department of Justice
</p>
</div>
<div class="fact-sheet-e-side-bar">
<p><strong>What is "undue hardship"?</strong></p>
<p>
The person paying or the person receiving child support can ask for a different amount than what's listed in
the guidelines tables if that amount would cause them undue hardship. The payor may experience undue hardship
trying to pay the child support, or the recipient may experience undue hardship trying to support the child or
children with the amount given. The courts have said that "undue" means excessive, exceptional, or
disproportionate. This can be a hard thing to prove. The person making the claim must report all income coming
into their household, including any income or contribution from a new spouse or partner. This includes any
contribution to household expenses, and any rental income, dividend income, investment income, and business
income. If the payor makes this claim, the recipient must also provide information about their income.
</p>
<p><strong>How to determine undue hardship</strong></p>
<p>
To determine undue hardship under the Federal Child Support Guidelines, you need to compare the standards of
living in both households. To do this, you need to:
</p>
<ul>
<li>
calculate the income of every member of both households; adjust each person’s income according to the rules
set out in the Federal Guidelines; and
</li>
<li>
calculate the household income ratio.
</li>
</ul>
<p>
The Federal Child Support Guidelines Step-by-Step Guide has a
{% 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/w3a-f3a.html#s3" link_text="worksheet" %}
to help you with the calculation to figure out whether there is undue hardship in your situation.
</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/start-com.html#h11" link_text="Federal Child Support Guidelines" %}
, Department of Justice
</p>
</div>
{% endblock %}

+ 6
- 3
edivorce/apps/core/templatetags/input_field.py View File

@ -19,9 +19,12 @@ def money_input_field(context, input_type='number', name='', value_src=None, val
"""
if value == '':
if value_src is None:
value = float(context.get(name, 0.0))
value = context.get(name, 0.0)
else:
value = float(context.get(value_src, 0.0))
value = context.get(value_src, 0.0)
value = value if value != '' else 0.0
if scale_factor:
value = float(value) * float(scale_factor)
@ -42,7 +45,7 @@ def money_input_field(context, input_type='number', name='', value_src=None, val
@register.simple_tag(takes_context=True)
def input_field(context, type, name='', value='', multiple='', **kwargs):
"""
Usage: when specifying data attributes in templates, use "data_" intead of "data-".
Usage: when specifying data attributes in templates, use "data_" instead of "data-".
"""
if type == "textarea":
tag = ['<textarea name="' + name + '"']


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

@ -56,7 +56,8 @@ question_step_mapping = {
'spouse_total_guideline_amount',
'spouse_agree_to_child_support_amount',
'spouse_agreed_child_support_amount',
'spouse_reason_child_support_amount'
'spouse_reason_child_support_amount',
'you_spouse_entered_agreement'
],
'spousal_support': ['spouse_support_details', 'spouse_support_act'],
'property_and_debt': ['deal_with_property_debt',


+ 48
- 16
edivorce/fixtures/Question.json View File

@ -870,7 +870,7 @@
{
"fields": {
"name": "How many child(ren) are you asking for support?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -882,7 +882,7 @@
{
"fields": {
"name": "What is the Child Support Guidelines amount for $150,000?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -894,7 +894,7 @@
{
"fields": {
"name": "What is the % of income over $150,000 from the Child Support Guidlines?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -906,7 +906,7 @@
{
"fields": {
"name": "What is the child support amount to be paid on the portion of income over $150,000?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -918,7 +918,7 @@
{
"fields": {
"name": "Guidelines table amount",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -930,7 +930,7 @@
{
"fields": {
"name": "What is the amount that you and your spouse have agreed to?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "annual_gross_income",
@ -942,7 +942,7 @@
{
"fields": {
"name": "What is the amount that you and your spouse have agreed to?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "agree_to_child_support_amount",
@ -954,7 +954,7 @@
{
"fields": {
"name": "Why do you think the court should approve your proposed amount?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Your Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "agree_to_child_support_amount",
@ -976,7 +976,7 @@
{
"fields": {
"name": "How many child(ren) are you asking for support?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -988,7 +988,7 @@
{
"fields": {
"name": "What is the Child Support Guidelines amount for $150,000?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -1000,7 +1000,7 @@
{
"fields": {
"name": "What is the % of income over $150,000 from the Child Support Guidlines?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -1012,7 +1012,7 @@
{
"fields": {
"name": "What is the child support amount to be paid on the portion of income over $150,000?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -1024,7 +1024,7 @@
{
"fields": {
"name": "Guidelines table amount",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -1036,7 +1036,7 @@
{
"fields": {
"name": "What is the amount that you and your spouse have agreed to?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_annual_gross_income",
@ -1048,7 +1048,7 @@
{
"fields": {
"name": "What is the amount that you and your spouse have agreed to?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_agree_to_child_support_amount",
@ -1060,7 +1060,7 @@
{
"fields": {
"name": "Why do you think the court should approve your proposed amount?",
"description": "Fact Sheet F",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "spouse_agree_to_child_support_amount",
@ -1068,6 +1068,38 @@
},
"model": "core.question",
"pk": "spouse_reason_child_support_amount"
},
{
"fields": {
"name": "My spouse and I have entered into an agreement as to income pursuant to section 15 (2) of the Guidelines, a copy of which agreement is attached.",
"description": "For Step 6, Your children - Income & expenses",
"summary_order": 0,
"required": "Required"
},
"model": "core.question",
"pk": "you_spouse_entered_agreement"
},
{
"fields": {
"name": "Are you or your spouse claiming undue hardship?",
"description": "For Step 6, Your children - Income & expenses",
"summary_order": 0,
"required": "Required"
},
"model": "core.question",
"pk": "claiming_undue_hardship"
},
{
"fields": {
"name": "Unusual or excessive debts",
"description": "For Step 6, Your children - Income & expenses - Spouse Fact Sheet F",
"summary_order": 0,
"required": "Conditional",
"conditional_target": "claiming_undue_hardship",
"reveal_response": "YES"
},
"model": "core.question",
"pk": "claimant_debts"
}
]

Loading…
Cancel
Save