diff --git a/.gitignore b/.gitignore index a7763bba..897ce864 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,6 @@ target/ # Local env settings .env* + +# IDE +.idea/ diff --git a/edivorce/apps/core/static/js/ajax.js b/edivorce/apps/core/static/js/ajax.js index 1c8100b3..cf3d1fd2 100644 --- a/edivorce/apps/core/static/js/ajax.js +++ b/edivorce/apps/core/static/js/ajax.js @@ -24,6 +24,7 @@ var ajaxOnChange = function () { } else{ console.log("Invalid input for " + el.prop('name')); + window.alert("Invalid input for " + el.prop('name')); } }; diff --git a/edivorce/apps/core/static/js/controllers.js b/edivorce/apps/core/static/js/controllers.js index ac7f1328..be149138 100644 --- a/edivorce/apps/core/static/js/controllers.js +++ b/edivorce/apps/core/static/js/controllers.js @@ -68,7 +68,7 @@ var radioWithTextboxControl = function(el){ // when textbox is clicked, update associated radio button response with its value else if (el.is(".other-textbox")){ - var radioTextbox = $("#radio_with_textbox"); + var radioTextbox = el.siblings(".radio_with_textbox"); ajaxCall(radioTextbox.prop('name'), radioTextbox.val()); } }; diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index 58a1892d..7ec3bb4d 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -14,7 +14,7 @@ $(function () { // when user click textbox beside radio button, check the associated radio button $(".other-textbox").on("click", function(){ - $("#radio_with_textbox").prop('checked', true); + $(this).siblings(".radio_with_textbox").prop('checked', true); }); $("input[type=radio], input[type=checkbox], input[type=text], .response-textarea, .response-dropdown").on("change", ajaxOnChange); diff --git a/edivorce/apps/core/templates/f1/02_claimant.html b/edivorce/apps/core/templates/f1/02_claimant.html index dfd1714d..7460d417 100644 --- a/edivorce/apps/core/templates/f1/02_claimant.html +++ b/edivorce/apps/core/templates/f1/02_claimant.html @@ -113,7 +113,7 @@
Please select one
- +In order to apply for a divorce in British Columbia, you or your spouse must have been a regular resident in B.C (the legal term is ordinarily resident diff --git a/edivorce/apps/core/templates/f1/03_respondent.html b/edivorce/apps/core/templates/f1/03_respondent.html index 2d5bb7d8..82b2ad58 100644 --- a/edivorce/apps/core/templates/f1/03_respondent.html +++ b/edivorce/apps/core/templates/f1/03_respondent.html @@ -115,7 +115,7 @@
Please select one
- +In order to apply for a divorce in British Columbia, you or your spouse must have been a regular resident in B.C (the legal term is ordinarily resident diff --git a/edivorce/apps/core/templates/f1/04_marriage.html b/edivorce/apps/core/templates/f1/04_marriage.html index 07a482e3..9d841d0b 100644 --- a/edivorce/apps/core/templates/f1/04_marriage.html +++ b/edivorce/apps/core/templates/f1/04_marriage.html @@ -63,8 +63,8 @@
If you cannot remember the exact date you sepearated then enter:
You can also get a divorce if:
To get a divorce for these reasons you have to prove these things in court.
diff --git a/edivorce/apps/core/templates/f1/06_support.html b/edivorce/apps/core/templates/f1/06_support.html index 63dce05e..da14e559 100644 --- a/edivorce/apps/core/templates/f1/06_support.html +++ b/edivorce/apps/core/templates/f1/06_support.html @@ -23,10 +23,10 @@
The amount and duration of spousal support is determined after considering the circumstances of each spouse, including:
MySupportCalculator.ca is a website with a support calculator which can give you a rough estimate of spousal support." The guidelines and calculations are complicated so you may want to contact a family law lawyer or a family justice counesllor for help. @@ -51,8 +51,8 @@
If you're applying for an undefended divorce and asking for spousal support, make sure you fill in:
If you don't provide this information, the court may not make an order.
@@ -128,10 +128,10 @@
The objectives of spousal support are to:
Family property is everything either you or your spouse own together or separately on the date you separate. It includes:
It doesn't matter whose name the property is in.
@@ -99,7 +99,8 @@Because the division of family property and debt can be complex we recommend you get legal advice - before you make any final decisions.
+ before you make any final decisions. +The fact sheet Dealing With Debts After Separation (for Married and Common-law Couples) by the Legal Services Society answers a range of questions including:
The Family Law web site has an online separation agreement tool that details some of the items to consider when dividing property and debt.
This section is about excluded property - e.g. property owned by the respondent at the time you moved in together, and gifts or inheritances the respondent received. Compensation is cash instead of ownership of your share of the property.
+ {% input_option type="textarea" name="other_property_claims" rows="8" cols="65" class="response-textarea" %}This is known as your "address for service"
-House and street number
- {% input_option type="text" name="address_to_send_official_document_street" class="response-textbox" %} -City
- {% input_option type="text" name="address_to_send_official_document_city" class="response-textbox" %} -Prov/State
- {% input_option type="text" name="address_to_send_official_document_prov" class="response-textbox" %} +This is known as your "address for service"
+House and street number
+ {% input_option type="text" name="address_to_send_official_document_street_you" class="response-textbox" %} +City
+ {% input_option type="text" name="address_to_send_official_document_city_you" class="response-textbox" %} +Prov/State
+ {% input_option type="text" name="address_to_send_official_document_prov_you" class="response-textbox" %} -Country
+Country
- - - + + + +If you don’t live within 30 km of a court registry, you must provide a fax number or email address. + If you main address is a PO box, you can list this instead of the fax or email but you must also list + an address that’s not a PO box.
+ +Fax number (optional)
+ {% input_option type="text" name="address_to_send_official_document_fax_you" class="response-textbox" %} +Email Address (optional)
+ {% input_option type="text" id="email_textbox" name="address_to_send_official_document_email_you" class="response-textbox" %} +If you don’t live within 30 km of a court registry, you must provide a fax number or email address. - If you main address is a PO box, you can list this instead of the fax or email but you must also list - an address that’s not a PO box.
+This is known as your "address for service"
+House and street number
+ {% input_option type="text" name="address_to_send_official_document_street_spouse" class="response-textbox" %} +City
+ {% input_option type="text" name="address_to_send_official_document_city_spouse" class="response-textbox" %} +Prov/State
+ {% input_option type="text" name="address_to_send_official_document_prov_spouse" class="response-textbox" %} + +Country
+ + + + +If your spouse doesn’t live within 30 km of a court registry, your spouse must provide a fax number or email address. + If your spouse's main address is a PO box, your spouse can list this instead of the fax or email but your spouse must also list + an address that’s not a PO box.
-Fax number (optional)
- {% input_option type="text" name="address_to_send_official_document_fax" class="response-textbox" %} -Email Address (optional)
- {% input_option type="text" id="email_textbox" name="address_to_send_official_document_email" class="response-textbox" %} +Fax number (optional)
+ {% input_option type="text" name="address_to_send_official_document_fax_spouse" class="response-textbox" %} +Email Address (optional)
+ {% input_option type="text" id="email_textbox" name="address_to_send_official_document_email_spouse" class="response-textbox" %} +Claimant 1: - {% if responses.address_to_send_official_document_street and responses.address_to_send_official_document_city and responses.address_to_send_official_document_prov and responses.address_to_send_official_document_country %} - {{ responses.address_to_send_official_document_street }}, {{ responses.address_to_send_official_document_city }}, {{ responses.address_to_send_official_document_prov }}, - {% if responses.address_to_send_official_document_country == 'Other' %} {{ responses.address_to_send_official_document_other_country }} {% else %} {{ responses.address_to_send_official_document_country }} {% endif %} {% else %} {% endif %}
-Fax (optional) {% if responses.address_to_send_official_document_fax %} {{ responses.address_to_send_official_document_fax }} {% else %} {% endif %}
-E-mail (optional) {% if responses.address_to_send_official_document_email %} {{ responses.address_to_send_official_document_email }} {% else %} {% endif %}
+ {% if responses.address_to_send_official_document_street_you and responses.address_to_send_official_document_city_you and responses.address_to_send_official_document_prov_you and responses.address_to_send_official_document_country_you %} + {{ responses.address_to_send_official_document_street_you }}, {{ responses.address_to_send_official_document_city_you }}, {{ responses.address_to_send_official_document_prov_you }}, + {% if responses.address_to_send_official_document_country_you == 'Other' %} {{ responses.address_to_send_official_document_other_country_you }} {% else %} {{ responses.address_to_send_official_document_country_you }} {% endif %} {% else %} {% endif %} +Fax (optional) {% if responses.address_to_send_official_document_fax_you %} {{ responses.address_to_send_official_document_fax_you }} {% else %} {% endif %}
+E-mail (optional) {% if responses.address_to_send_official_document_email_you %} {{ responses.address_to_send_official_document_email_you }} {% else %} {% endif %}
Claimant 2:
-Fax (optional)
-E-mail (optional)
+Claimant 2: + {% if responses.address_to_send_official_document_street_spouse and responses.address_to_send_official_document_city_spouse and responses.address_to_send_official_document_prov_spouse and responses.address_to_send_official_document_country_spouse %} + {{ responses.address_to_send_official_document_street_spouse }}, {{ responses.address_to_send_official_document_city_spouse }}, {{ responses.address_to_send_official_document_prov_spouse }}, + {% if responses.address_to_send_official_document_country_spouse == 'Other' %} {{ responses.address_to_send_official_document_other_country_spouse }} {% else %} {{ responses.address_to_send_official_document_country_spouse }} {% endif %} {% else %} {% endif %}
+Fax (optional) {% if responses.address_to_send_official_document_fax_spouse %} {{ responses.address_to_send_official_document_fax_spouse }} {% else %} {% endif %}
+E-mail (optional) {% if responses.address_to_send_official_document_email_spouse %} {{ responses.address_to_send_official_document_email_spouse }} {% else %} {% endif %}