Browse Source

Merge pull request #46 from bcgov/DIV-954

DIV-954: Prepolutated 19 over children and support amounts on Fact sh…
pull/160/head
Charles Shin 6 years ago
committed by GitHub
parent
commit
14df9cd925
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 28 deletions
  1. +1
    -1
      edivorce/apps/core/static/css/main.css
  2. +5
    -0
      edivorce/apps/core/static/css/main.scss
  3. +21
    -21
      edivorce/apps/core/templates/question/01_orders.html
  4. +11
    -5
      edivorce/apps/core/templates/question/06_children_facts.html
  5. +4
    -0
      edivorce/apps/core/templates/question/06_children_what_for.html
  6. +6
    -1
      edivorce/apps/core/templatetags/input_field.py

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


+ 5
- 0
edivorce/apps/core/static/css/main.scss View File

@ -242,6 +242,11 @@ input[type=number]::-webkit-outer-spin-button {
}
}
.fact-sheet-input {
&[readonly] {
background: #f2f2f2;
}
}
.table-cell-active {
border: 1px solid #66afe9;


+ 21
- 21
edivorce/apps/core/templates/question/01_orders.html View File

@ -233,6 +233,26 @@ asked to provide details for each request.</p>
</div>
<div class="information-message bg-danger" id="child_support_alert" hidden>
<p><strong>The benefits of using both courts</strong></p>
<p>
In some situations, you may find it best to use both courts. You could get
most of your orders in Provincial Court, and then just apply for your
divorce order in Supreme Court. (You could also choose to make an agreement
about parenting, support, and property and then just apply to the Supreme
Court for a divorce.) This approach might save you money and time, especially
if you and your spouse agree on what should be done.
</p>
<p>
On the other hand, it could make things more complicated to have to deal with
two different courts. It can also be a problem if you ask more than one court
to deal with issues about parenting and support.
</p>
<p>
More information on which court you may need to go to can be found on the
<a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/choosing_court.php" target="_blank">Family Law in B.C. website</a>
and the
<a href="https://www2.gov.bc.ca/gov/content/life-events/divorce/family-justice/your-options/going-to-court/which-court-should-i-go-to" target="_blank">Government of B.C. website</a>.
</p>
<p><strong>Asking for Orders Pertaining to Children in Provincial or Supreme Court.</strong></p>
<p>
If you will be asking for parenting and support issues, you can choose between the
@ -273,27 +293,7 @@ asked to provide details for each request.</p>
under the provincial Family Law Act. The Family Law Act is usually
better for settling these issues because it is tailored to respond
to the needs of families.
</p>
<p><strong>The benefits of using both courts</strong></p>
<p>
In some situations, you may find it best to use both courts. You could get
most of your orders in Provincial Court, and then just apply for your
divorce order in Supreme Court. (You could also choose to make an agreement
about parenting, support, and property and then just apply to the Supreme
Court for a divorce.) This approach might save you money and time, especially
if you and your spouse agree on what should be done.
</p>
<p>
On the other hand, it could make things more complicated to have to deal with
two different courts. It can also be a problem if you ask more than one court
to deal with issues about parenting and support.
</p>
<p>
More information on which court you may need to go to can be found on the
<a href="http://www.familylaw.lss.bc.ca/resources/fact_sheets/choosing_court.php" target="_blank">Family Law in B.C. website</a>
and the
<a href="https://www2.gov.bc.ca/gov/content/life-events/divorce/family-justice/your-options/going-to-court/which-court-should-i-go-to" target="_blank">Government of B.C. website</a>.
</p>
</p>
</div>
</div>


+ 11
- 5
edivorce/apps/core/templates/question/06_children_facts.html View File

@ -457,7 +457,7 @@
How many child(ren) are 19 years or older for whom you are asking for support?
</p>
<div>
{% input_field type="number" name="number_children_over_19_need_support" class="fact-sheet-input input-narrow positive-integer" %}
{% input_field type="number" name="number_children_over_19_need_support" value="number_children_over_19" class="fact-sheet-input input-narrow positive-integer" readonly="" %}
</div>
</div>
@ -467,16 +467,22 @@
<b>This information is needed for the Judge. You will be able to indicate a different child support amount in a following step.</b>
</p>
<div>
<div class="dollar-prefix">
{% money_input_field name="total_spouse_paid_child_support" class="fact-sheet-input money input-narrow form-block response-textbox" %}
</div>
{% if derived.show_fact_sheet_b or derived.show_fact_sheet_c %}
<div class="dollar-prefix">
{% money_input_field name="total_spouse_paid_child_support" value_src="difference_payment_amounts" class="fact-sheet-input money input-narrow form-block response-textbox" readonly="" %}
</div>
{% else %}
<div class="dollar-prefix">
{% money_input_field name="total_spouse_paid_child_support" value_src="payor_monthly_child_support_amount" class="fact-sheet-input money input-narrow form-block response-textbox" readonly="" %}
</div>
{% endif %}
</div>
{% include "partials/inline_question_determine_amount_to_pay.html" with collapse_target_id="collapse_calculate_amounts" %}
</div>
<div class="question-well-border-less">
<p>
Do you and your spouse agree that the monthly Guidelines table amount for child support is appropriate?
Because you have a child(ren) 19 years or older, who may also be contributing to their own support, do you and your spouse agree that the monthly Guidelines table amount for child support is appropriate?
</p>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">


+ 4
- 0
edivorce/apps/core/templates/question/06_children_what_for.html View File

@ -56,6 +56,10 @@
<div class="dollar-prefix">
{% money_input_field name="order_monthly_child_support_amount" class="money positive-float form-block response-textbox children-input-block child-support-amount" data_ajax_only_radio_selected="true" %}
</div>
{% elif agree_to_guideline_child_support_amount == 'NO' %}
<div class="dollar-prefix">
{% money_input_field name="order_monthly_child_support_amount" value_src="appropriate_spouse_paid_child_support" class="money positive-float form-block response-textbox children-input-block child-support-amount" data_ajax_only_radio_selected="true" %}
</div>
{% else %}
<div class="dollar-prefix">
{% money_input_field name="order_monthly_child_support_amount" class="money positive-float form-block response-textbox children-input-block child-support-amount" data_ajax_only_radio_selected="true" value='0' %}


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

@ -90,7 +90,12 @@ def input_field(context, type, name='', value='', multiple='', **kwargs):
except ValueError:
pass # conversion to current format not needed
elif type == "number":
value = context.get(name, '')
if value == '':
value = context.get(name, '')
elif value.isdigit():
value = value
else:
value = context.get(value, '')
attributes = additional_attributes(**kwargs)


Loading…
Cancel
Save