Browse Source

Fixed failing test and minor issues

pull/160/head
Charles Shin 8 years ago
parent
commit
44522bea01
4 changed files with 13 additions and 12 deletions
  1. +0
    -1
      edivorce/apps/core/static/js/controllers.js
  2. +0
    -1
      edivorce/apps/core/templates/prequalification/step_01.html
  3. +12
    -9
      edivorce/apps/core/templates/question/01_orders.html
  4. +1
    -1
      edivorce/apps/core/tests.py

+ 0
- 1
edivorce/apps/core/static/js/controllers.js View File

@ -7,7 +7,6 @@ var reveal = function(el) {
var id = '#' + el.data("target_id");
var css_class = el.data("target_class");
var related_id = el.data("related_id");
console.log(id);
// hide or show based on target id
if (el.data("reveal_target") == true && el.prop('checked')) {
$(id).show();


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

@ -10,7 +10,6 @@
{% endblock %}
{% block content %}
<h1>Do you qualify for a divorce in B.C.?</h1>
<p>Let's start off with a few questions about your situation to make sure that this online divorce tool can


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

@ -111,18 +111,21 @@
</div>
</div>
<div class="checkbox hidden"><label>{% input_field type="checkbox" name="want_which_orders" value="Child support" %}<b>Child support (Out of scope)</b></label></div>
{% comment "Not in use - Out of this scope but keep it for later" %}
<div class="checkbox"><label>{% input_field type="checkbox" name="want_which_orders" value="Child support" %}<b>Child support (Out of scope)</b></label></div>
{% endcomment %}
<div class="information-message bg-danger" id="child_support_alert" hidden>
<p>We've noticed that at this point in time you are not applying for spousal support and/or division of property, debt, or a pension. If you decide to request these items in the future there are some time limits.</p>
<h2>Division of Property and Debts</h2>
<p>If you were married, you must apply to divide property within two years after you get an order for divorce. If you were living in a marriage-like relationship for at least two years, you must apply within two years of the date you separated.</p>
<h2>Spousal Support</h2>
<p>If you were married, you must apply for spousal support under the Family Law Act within two years after you get an order for divorce. If you are applying for spousal support under the Divorce Act, you do not have a time limit.</p>
<p>If you were unmarried, and you qualify for spousal support, you must apply within two years of the date you separated.</p>
<div class="question-well" id="unselected_orders_alert" hidden>
<div class="information-message bg-danger">
<p>We've noticed that at this point in time you are not applying for spousal support and/or division of property, debt, or a pension. If you decide to request these items in the future there are some time limits.</p>
<h2>Division of Property and Debts</h2>
<p>If you were married, you must apply to divide property within two years after you get an order for divorce. If you were living in a marriage-like relationship for at least two years, you must apply within two years of the date you separated.</p>
<h2>Spousal Support</h2>
<p>If you were married, you must apply for spousal support under the Family Law Act within two years after you get an order for divorce. If you are applying for spousal support under the Divorce Act, you do not have a time limit.</p>
<p>If you were unmarried, and you qualify for spousal support, you must apply within two years of the date you separated.</p>
</div>
</div>
<div id="questions_modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">


+ 1
- 1
edivorce/apps/core/tests.py View File

@ -183,7 +183,7 @@ class UserResponseTestCase(TestCase):
create_response(user, 'no_reconciliation_possible', 'I agree')
lst = UserResponse.objects.filter(question_id__in=questions).values('question_id', 'value')
self.assertEqual(is_complete(step, lst), True)
self.assertEqual(is_complete(step, lst), False)
# Put empty response
UserResponse.objects.filter(question_id='no_reconciliation_possible').update(value="")


Loading…
Cancel
Save