Browse Source

DIV-501

pull/160/head
Justin Johnson 8 years ago
parent
commit
4830f05e55
7 changed files with 347 additions and 267 deletions
  1. +8
    -0
      edivorce/apps/core/static/css/weasyprint.css
  2. +78
    -99
      edivorce/apps/core/templates/pdf/form38.html
  3. +48
    -75
      edivorce/apps/core/templates/pdf/form38_we.html
  4. +45
    -29
      edivorce/apps/core/templates/pdf/form52.html
  5. +58
    -18
      edivorce/apps/core/templates/question/08_other_orders.html
  6. +65
    -45
      edivorce/apps/core/utils/question_step_mapping.py
  7. +45
    -1
      edivorce/fixtures/Question.json

+ 8
- 0
edivorce/apps/core/static/css/weasyprint.css View File

@ -103,4 +103,12 @@ i.fa {
border-top: none !important;
}
ol.numbered-paragraphs {
padding-left: 1.5em;
}
ol.numbered-paragraphs li {
margin-bottom: 10px;
padding-left: 1.5em;
}

+ 78
- 99
edivorce/apps/core/templates/pdf/form38.html View File

@ -62,106 +62,85 @@
{% if responses.address_to_send_official_document_country_claimant == 'Other' %} {{ responses.address_to_send_official_document_other_country_claimant }}{% else %} {{ responses.address_to_send_official_document_country_claimant }}{% endif %}, {{ responses.address_to_send_official_document_postal_code_claimant }}{% else %}<span class="form-entry not-complete"></span>{% endif %},
{% if responses.occupation_claimant %} {{ responses.occupation_claimant }}{% else %}<span class="form-entry not-complete"></span>{% endif %}, SWEAR (OR AFFIRM) THAT:
</p>
<p class="schIndent1">
1 I am {% if responses.which_claimant %}{{ responses.which_claimant }}{% else %}<span class="form-entry not-complete">{% endif %}</span>.
</p>
<p class="schIndent1">
2 There is no possibility of reconciliation between my spouse and me.
</p>
<p class="schIndent1">
3 I believe that the facts set out in the notice of family claim are true.
</p>
{% if responses.original_marriage_certificate == 'YES' %}
<p class="schIndent1">
4 The certificate of marriage or certified copy of the registration of marriage filed in this family law case fully and correctly describes the true particulars of the marriage.
</p>
{% else %}
<p class="schIndent1">
4 It is impossible to obtain a certificate of marriage or a certified copy of the registration of marriage and instead, in accordance with section 52 (1) (a) of the <em>Evidence Act</em>, I refer to the affidavit of <span class="form-entry not-complete"></span>,
a person who was present at the marriage ceremony, which affidavit is filed in this family law case.
</p>
{% endif %}
<p class="schIndent1">
5 I was living separate and apart from my spouse at the start of this family law case and I have lived separate and apart from my spouse since
{% if responses.separation_date %} {{ responses.separation_date|date_formatter }}{% else %} <span class="form-entry not-complete"></span>{% endif %}, except:
{% multiple_values_to_list source=responses.reconciliation_period as periods %}
{% if periods != '[]' and responses.try_reconcile_after_separated == 'YES' %}
{% for period in periods %}
from {{ period | first |date_formatter }} to {{ period | last |date_formatter }}{% if not forloop.last %}, {% endif %}
{% endfor %}.
{% else %}<span class="form-entry not-complete"></span>{% endif %}
</p>
{% comment "This section is out of scope" %}
<p class="schIndent1">
5 My spouse has admitted to me that <span class="form-entry not-complete"></span> committed the acts of adultery alleged in Schedule
1 of the <span class="form-entry not-complete"></span> and
</p>
<p class="schIndent2">
(a) as corroboration I refer to <span class="form-entry not-complete">[<em>Set out whichever one of the following is applicable:</em></span> the affidavit(s) of <span class="form-entry not-complete"></span>, / the transcript of the examination for discovery of <span class="form-entry not-complete"></span>
marked as Exhibit "A" to this affidavit <span class="form-entry not-complete">]</span> ,
</p>
<p class="schIndent2">
(b) I have not condoned the conduct of my spouse that is alleged as the grounds for divorce in that I have not forgiven my spouse for that conduct, nor have I encouraged or acquiesced in that conduct.
</p>
<p class="schIndent1">
5 I have no personal knowledge of the acts of adultery alleged in Schedule 1 of the <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
and
</p>
<p class="schIndent2">
(a) in proof of the adultery committed by my spouse I refer to <span class="form-entry not-complete">&nbsp;</span>[<em>Set out whichever one of the following is applicable:</em> the affidavit(s) of <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>, / the transcript of the examination
for discovery of <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> marked as Exhibit "A" to this affidavit]<span class="form-entry not-complete">&nbsp;</span> ,
</p>
<p class="schIndent2">
(b) I have not condoned the conduct of my spouse that is alleged as the grounds for divorce in that I have not forgiven my spouse for that conduct, nor have I encouraged or acquiesced in that conduct.
</p>
<p class="schIndent1">
5 My spouse has treated me with physical or mental cruelty since the date of the marriage as follows: <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
</p>
{% endcomment %}
<p class="schIndent1">
6 I am neither directly nor indirectly a party to an agreement or conspiracy for the purpose of subverting the administration of justice, or to any agreement, understanding or arrangement to fabricate or suppress evidence or to deceive the court.
</p>
<p class="schIndent1 force-break">
<!-- Keep question #7 together with the sig block, so the sig block is never on a page by iteself. -->
7 There are no children of the marriage as defined by the <em>Divorce Act</em> (Canada).
</p>
{% comment "This section is out of scope" %}
<p class="schIndent1">
7 There are children of the marriage as defined by the <em>Divorce Act</em> (Canada) and
</p>
<p class="schIndent2">
(a) those children are <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>,
</p>
<p class="schIndent2">
(b) I have sworn a child support affidavit in Form F37, and
</p>
<p class="schIndent2">
(c) the following arrangements for parenting have been made: <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> .
</p>
{% endcomment %}
{% comment "This section is out of scope" %}
<p class="schIndent1">
8 Additional Details <span class="form-entry form-textarea not-complete"> </span>
</p>
{% endcomment %}
{% comment "This section is out of scope" %}
<p>
<em>[Select and complete the following provision if you are seeking a change of name for one or more minor children. If you are not seeking a change of name for one or more minor children, remove this provision so that it does not appear in the form when the form is filed. Renumber this provision as section 8 if you are seeking a change of name for one or more minor children and have not included a section 8 immediately before this provision.]</em>
</p>
<p class="schIndent1">
9 Pursuant to section 5 of the Name Act, I am seeking to change the name(s) of the minor child(ren) of the marriage as follows, and a copy of the consent(s) to the change(s) of name referred to in this section of <span class="form-entry not-complete"></span>
who is/are <span class="form-entry not-complete"></span> is/are attached to this affidavit and marked as Exhibit(s) <span class="form-entry not-complete"></span>.
</p>
<p class="schIndent2">
from <span class="form-entry not-complete">&nbsp;</span> to: <span class="form-entry not-complete">&nbsp;</span>
</p>
{% endcomment %}
<ol class="numbered-paragraphs">
<li>
I am {% if responses.which_claimant %}{{ responses.which_claimant }}{% else %}<span class="form-entry not-complete">{% endif %}</span>.
</li>
<li>
There is no possibility of reconciliation between my spouse and me.
</li>
<li>
I believe that the facts set out in the notice of family claim are true.
</li>
{% if responses.original_marriage_certificate == 'YES' %}
<li>
The certificate of marriage or certified copy of the registration
of marriage filed in this family law case fully and correctly
describes the true particulars of the marriage.
</li>
{% else %}
<li>
It is impossible to obtain a certificate of marriage or a
certified copy of the registration of marriage and instead, in
accordance with section 52 (1) (a) of the <em>Evidence
Act</em>, I refer to the affidavit of <span class="form-entry
not-complete"></span>, a person who was present at the marriage
ceremony, which affidavit is filed in this family law case.
</li>
{% endif %}
<li>
I was living separate and apart from my spouse at the start of this
family law case and I have lived separate and apart from my spouse
since
{% if responses.separation_date %}
{{ responses.separation_date|date_formatter }},
{% else %}
<span class="form-entry not-complete"></span>,
{% endif %}
except:
{% multiple_values_to_list source=responses.reconciliation_period as periods %}
{% if periods != '[]' and responses.try_reconcile_after_separated == 'YES' %}
{% for period in periods %}
from {{ period | first |date_formatter }}
to {{ period | last |date_formatter }}{% if not forloop.last %}, {% endif %}
{% endfor %}.
{% else %}<span class="form-entry not-complete"></span>{% endif %}
</li>
<li>
I am neither directly nor indirectly a party to an agreement or
conspiracy for the purpose of subverting the administration of
justice, or to any agreement, understanding or arrangement to
fabricate or suppress evidence or to deceive the court.
</li>
<li class="force-break">
<!-- Keep question #7 together with the sig block, so the sig block is never on a page by iteself. -->
There are no children of the marriage as defined by the <em>Divorce
Act</em> (Canada).
</li>
{% if responses.which_claimant == 'Claimant 1' and responses.name_change_you == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 1 shall
bear the name of {{ responses.name_change_you_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
{% if responses.which_claimant == 'Claimant 2' and responses.name_change_spouse == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 2 shall
bear the name of {{ responses.name_change_spouse_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
</ol>
<br><br><br>
<table class="table table-bordered">


+ 48
- 75
edivorce/apps/core/templates/pdf/form38_we.html View File

@ -74,92 +74,65 @@
{% if responses.occupation_spouse %} {{ responses.occupation_spouse }}{% else %}<span class="form-entry not-complete"></span>{% endif %},<br />
SWEAR (OR AFFIRM) THAT:
</p>
<p class="schIndent1">
1 We are claimant 1 and claimant 2.
</p>
<p class="schIndent1">
2 There is no possibility of reconciliation between my spouse and me.
</p>
<p class="schIndent1">
3 We believe that the facts set out in the notice of family claim are true.
</p>
<ol class="numbered-paragraphs">
<li>We are claimant 1 and claimant 2.</li>
<li>There is no possibility of reconciliation between my spouse and me.</li>
<li>We believe that the facts set out in the notice of family claim are true.</li>
{% if responses.original_marriage_certificate == 'YES' %}
<p class="schIndent1">
4 The certificate of marriage or certified copy of the registration of marriage filed in this family law case fully and correctly describes the true particulars of the marriage.
</p>
<li>The certificate of marriage or certified copy of the registration
of marriage filed in this family law case fully and correctly
describes the true particulars of the marriage.</li>
{% else %}
<p class="schIndent1">
4 It is impossible to obtain a certificate of marriage or a certified copy of the registration of marriage and instead, in accordance with section 52 (1) (a) of the <em>Evidence Act</em>, we refer to the affidavit of <span class="form-entry not-complete"></span>,
a person who was present at the marriage ceremony, which affidavit is filed in this family law case.
</p>
<li>It is impossible to obtain a certificate of marriage or a
certified copy of the registration of marriage and instead, in
accordance with section 52 (1) (a) of the <em>Evidence Act</em>, we
refer to the affidavit of <span class="form-entry
not-complete"></span>, a person who was present at the marriage
ceremony, which affidavit is filed in this family law case.</li>
{% endif %}
<p class="schIndent1">
5 Claimant 1 and claimant 2 were living separate and apart from each other at the start of this family law case and claimant 1 and claimant 2 have lived separate and apart from each other since
{% if responses.separation_date %} {{ responses.separation_date|date_formatter }}{% else %} <span class="form-entry not-complete"></span>{% endif %}, except:
<li>
Claimant 1 and claimant 2 were living separate and apart from each
other at the start of this family law case and claimant 1 and
claimant 2 have lived separate and apart from each other since
{% if responses.separation_date %}
{{ responses.separation_date|date_formatter }}
{% else %}
<span class="form-entry not-complete"></span>
{% endif %},
except:
{% multiple_values_to_list source=responses.reconciliation_period as periods %}
{% if periods != '[]' and responses.try_reconcile_after_separated == 'YES' %}
{% for period in periods %}
from {{ period | first|date_formatter }} to {{ period | last|date_formatter }}{% if not forloop.last %}, {% endif %}
{% endfor %}.
{% else %}<span class="form-entry not-complete"></span>{% endif %}
</p>
{% comment "This section is out of scope" %}
<p class="schIndent1">
5 My spouse has admitted to me that <span class="form-entry not-complete"></span> committed the acts of adultery alleged in Schedule
1 of the <span class="form-entry not-complete"></span> and
</p>
<p class="schIndent2">
(a) as corroboration I refer to <span class="form-entry not-complete">[<em>Set out whichever one of the following is applicable:</em></span> the affidavit(s) of <span class="form-entry not-complete"></span>, / the transcript of the examination for discovery of <span class="form-entry not-complete"></span>
marked as Exhibit "A" to this affidavit <span class="form-entry not-complete">]</span> ,
</p>
<p class="schIndent2">
(b) I have not condoned the conduct of my spouse that is alleged as the grounds for divorce in that I have not forgiven my spouse for that conduct, nor have I encouraged or acquiesced in that conduct.
</p>
<p class="schIndent1">
5 I have no personal knowledge of the acts of adultery alleged in Schedule 1 of the <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
and
</p>
<p class="schIndent2">
(a) in proof of the adultery committed by my spouse I refer to <span class="form-entry not-complete">&nbsp;</span>[<em>Set out whichever one of the following is applicable:</em> the affidavit(s) of <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>, / the transcript of the examination
for discovery of <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> marked as Exhibit "A" to this affidavit]<span class="form-entry not-complete">&nbsp;</span> ,
</p>
<p class="schIndent2">
(b) I have not condoned the conduct of my spouse that is alleged as the grounds for divorce in that I have not forgiven my spouse for that conduct, nor have I encouraged or acquiesced in that conduct.
</p>
<p class="schIndent1">
5 My spouse has treated me with physical or mental cruelty since the date of the marriage as follows: <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
</p>
{% endcomment %}
<p class="schIndent1">
6 We are neither directly nor indirectly a party to an agreement or conspiracy for the purpose of subverting the administration of justice, or to any agreement, understanding or arrangement to fabricate or suppress evidence or to deceive the court.
</p>
</li>
<li>We are neither directly nor indirectly a party to an agreement or
conspiracy for the purpose of subverting the administration of
justice, or to any agreement, understanding or arrangement to
fabricate or suppress evidence or to deceive the court.</li>
<li>There are no children of the marriage as defined by the
<em>Divorce Act</em> (Canada).</li>
{% if responses.name_change_you == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 1 shall
bear the name of {{ responses.name_change_you_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
<p class="schIndent1 force-break">
7 There are no children of the marriage as defined by the <em>Divorce Act</em> (Canada).
</p>
{% comment "This section is out of scope" %}
<p class="schIndent1">
7 There are children of the marriage as defined by the <em>Divorce Act</em> (Canada) and
</p>
<p class="schIndent2">
(a) those children are <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>,
</p>
<p class="schIndent2">
(b) we have sworn a child support affidavit in Form F37, and
</p>
<p class="schIndent2">
(c) the following arrangements for parenting have been made: <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> .
</p>
{% endcomment %}
{% if responses.name_change_spouse == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 2 shall
bear the name of {{ responses.name_change_spouse_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
{% comment "This section is out of scope" %}
<p class="schIndent1">
8 Additional Details <span class="form-entry form-textarea not-complete"> </span>
</p>
{% endcomment %}
</ol>
<br><br><br>
<table class="table table-bordered">


+ 45
- 29
edivorce/apps/core/templates/pdf/form52.html View File

@ -109,35 +109,51 @@
<div class="avoid-break">
{% if 'Division of property and debts' in responses.want_which_orders|load_json or 'Spousal support' in responses.want_which_orders|load_json or 'Other orders' in responses.want_which_orders|load_json %}
<p>
THIS COURT ORDERS that BY CONSENT:
</p>
<p class="schIndent1">
<ol>
{% if 'Spousal support' in responses.want_which_orders|load_json and responses.spouse_support_details %}
<li>{{ responses.spouse_support_details }}</li>
{% endif %}
{% if 'Division of property and debts' in responses.want_which_orders|load_json %}
<li>
{% if responses.deal_with_property_debt == 'Equal division' %}
Equal division of property and debts.
{% else %}
{{ responses.how_to_divide_property_debt }}
{% endif %}
<br>
{{ responses.other_property_claims }}
</li>
{% endif %}
{% if 'Other orders' in responses.want_which_orders|load_json and responses.other_orders_detail %}
<li>{{ responses.other_orders_detail }}</li>
{% endif %}
</ol>
</p>
{% endif %}
{% if 'Division of property and debts' in responses.want_which_orders|load_json or 'Spousal support' in responses.want_which_orders|load_json or 'Other orders' in responses.want_which_orders|load_json %}
<p>
THIS COURT ORDERS that BY CONSENT:
</p>
<ol class="numbered-paragraphs">
{% if 'Spousal support' in responses.want_which_orders|load_json and responses.spouse_support_details %}
<li>{{ responses.spouse_support_details }}</li>
{% endif %}
{% if 'Division of property and debts' in responses.want_which_orders|load_json %}
<li>
{% if responses.deal_with_property_debt == 'Equal division' %}
Equal division of property and debts.
{% else %}
{{ responses.how_to_divide_property_debt }}
{% endif %}
<br>
{{ responses.other_property_claims }}
</li>
{% endif %}
{% if responses.name_change_you == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 1 shall
bear the name of {{ responses.name_change_you_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
{% if responses.name_change_spouse == 'YES' %}
<li>
Pursuant to Section 5 of the Name Act, Claimant 2 shall
bear the name of {{ responses.name_change_spouse_fullname }}
to take effect on the 31st day after the date of this
order.
</li>
{% endif %}
{% if 'Other orders' in responses.want_which_orders|load_json and responses.other_orders_detail %}
<li>{{ responses.other_orders_detail }}</li>
{% endif %}
</ol>
{% endif %}
<p>
THE FOLLOWING PARTIES APPROVE THE FORM OF THIS ORDER AND CONSENT TO EACH OF THE ORDERS, IF ANY, THAT ARE INDICATED ABOVE AS BEING BY CONSENT:


+ 58
- 18
edivorce/apps/core/templates/question/08_other_orders.html View File

@ -10,28 +10,68 @@
<h1><small>Step {% step_order step="other_orders" %}:</small>Other Orders</h1>
<h3>Please enter the details for another orders that you are asking for.</h3>
{% input_field type="textarea" name="other_orders_detail" rows="8" cols="65" class="response-textarea" %}
<div id="questions_modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<i class="fa fa-gavel" aria-hidden="true"></i>
<h1 class="modal-title">Other Orders</h1>
</div>
<div class="modal-body">
<p>This section will allow you to provide the details for any other orders you are seeking.</p>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-primary btn-lg" data-dismiss="modal">Continue</a>
</div>
</div>
<div class="question-well">
<h3>Are you asking for a name change?</h3>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="name_change_you" autocomplete="off" value="YES" data_target_id="name_change_you_fullname" data_reveal_target="true" %} Yes
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="name_change_you" autocomplete="off" value="NO" data_target_id="name_change_you_fullname" data_reveal_target="false" %} No
</label>
</div>
<div id="name_change_you_fullname" hidden>
<h3>Please enter the full name</h3>
{% input_field type="text" name="name_change_you_fullname" class="form-block input-wide response-textbox" %}
</div>
</div>
<div class="question-well">
<h3>Is your spouse asking for a name change?</h3>
<div class="btn-radio-group" data-toggle="buttons">
<label class="btn btn-radio">
{% input_field type="radio" name="name_change_spouse" autocomplete="off" value="YES" data_target_id="name_change_spouse_fullname" data_reveal_target="true" %} Yes
</label>
<label class="btn btn-radio">
{% input_field type="radio" name="name_change_spouse" autocomplete="off" value="NO" data_target_id="name_change_spouse_fullname" data_reveal_target="false" %} No
</label>
</div>
<div id="name_change_spouse_fullname" hidden>
<h3>Please enter the full name</h3>
{% input_field type="text" name="name_change_spouse_fullname" class="form-block input-wide response-textbox" %}
</div>
</div>
<div class="question-well">
<h3>Please enter the details for other orders that you are asking for.</h3>
{% input_field type="textarea" name="other_orders_detail" rows="8" cols="65" class="response-textarea" %}
<div id="questions_modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<i class="fa fa-gavel" aria-hidden="true"></i>
<h1 class="modal-title">Other Orders</h1>
</div>
<div class="modal-body">
<p>This section will allow you to provide the details for any other orders you are seeking.</p>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-primary btn-lg" data-dismiss="modal">Continue</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block formBack %}{% prev_step step='other_orders' %}{% endblock %}
@ -42,4 +82,4 @@
{% endblock %}
{% block sidebar %}
<!-- no sidebar -->
{% endblock %}
{% endblock %}

+ 65
- 45
edivorce/apps/core/utils/question_step_mapping.py View File

@ -2,50 +2,70 @@
Mapping between questions and steps
Usage: For each step title, list all questions_keys belong to that step
"""
question_step_mapping = {'prequalification': ['married_marriage_like', 'lived_in_bc', 'lived_in_bc_at_least_year', 'separation_date',
'children_of_marriage', 'any_under_19', 'children_financial_support', 'original_marriage_certificate',
'provide_certificate_later', 'provide_certificate_later_reason', 'not_provide_certificate_reason',
'divorce_reason', 'marriage_certificate_in_english', 'try_reconcile_after_separated', 'reconciliation_period',],
'which_orders': ['want_which_orders',],
'your_information': ['name_you', 'any_other_name_you', 'other_name_you', 'last_name_born_you',
'last_name_before_married_you', 'birthday_you', 'lived_in_bc_you', 'moved_to_bc_date_you',
'occupation_you'],
'your_spouse': ['name_spouse', 'any_other_name_spouse', 'other_name_spouse', 'last_name_born_spouse',
'last_name_before_married_spouse', 'birthday_spouse', 'lived_in_bc_spouse', 'moved_to_bc_date_spouse',
'occupation_spouse'],
'your_marriage': ['when_were_you_married', 'where_were_you_married_city', 'where_were_you_married_prov',
'where_were_you_married_country', 'where_were_you_married_other_country', 'marital_status_before_you',
'marital_status_before_spouse', 'when_were_you_live_married_like'],
'your_separation': ['no_reconciliation_possible', 'no_collusion',],
'spousal_support': ['spouse_support_details', 'spouse_support_act',],
'property_and_debt': ['deal_with_property_debt', 'how_to_divide_property_debt', 'other_property_claims'],
'other_orders': ['other_orders_detail'],
'other_questions': ['address_to_send_official_document_street_you',
'address_to_send_official_document_city_you',
'address_to_send_official_document_prov_you',
'address_to_send_official_document_country_you',
'address_to_send_official_document_other_country_you',
'address_to_send_official_document_postal_code_you',
'address_to_send_official_document_fax_you',
'address_to_send_official_document_email_you',
'address_to_send_official_document_street_spouse',
'address_to_send_official_document_city_spouse',
'address_to_send_official_document_prov_spouse',
'address_to_send_official_document_country_spouse',
'address_to_send_official_document_other_country_spouse',
'address_to_send_official_document_postal_code_spouse',
'address_to_send_official_document_fax_spouse',
'address_to_send_official_document_email_spouse',
'divorce_take_effect_on',
'divorce_take_effect_on_specific_date',],
'filing_locations': ['court_registry_for_filing',],
}
question_step_mapping = {
'prequalification': ['married_marriage_like', 'lived_in_bc',
'lived_in_bc_at_least_year', 'separation_date',
'children_of_marriage', 'any_under_19',
'children_financial_support',
'original_marriage_certificate',
'provide_certificate_later',
'provide_certificate_later_reason',
'not_provide_certificate_reason', 'divorce_reason',
'marriage_certificate_in_english',
'try_reconcile_after_separated',
'reconciliation_period'],
'which_orders': ['want_which_orders'],
'your_information': ['name_you', 'any_other_name_you', 'other_name_you',
'last_name_born_you', 'last_name_before_married_you',
'birthday_you', 'lived_in_bc_you',
'moved_to_bc_date_you', 'occupation_you'],
'your_spouse': ['name_spouse', 'any_other_name_spouse', 'other_name_spouse',
'last_name_born_spouse', 'last_name_before_married_spouse',
'birthday_spouse', 'lived_in_bc_spouse',
'moved_to_bc_date_spouse', 'occupation_spouse'],
'your_marriage': ['when_were_you_married', 'where_were_you_married_city',
'where_were_you_married_prov',
'where_were_you_married_country',
'where_were_you_married_other_country',
'marital_status_before_you',
'marital_status_before_spouse',
'when_were_you_live_married_like'],
'your_separation': ['no_reconciliation_possible', 'no_collusion'],
'spousal_support': ['spouse_support_details', 'spouse_support_act'],
'property_and_debt': ['deal_with_property_debt',
'how_to_divide_property_debt',
'other_property_claims'],
'other_orders': ['name_change_you', 'name_change_you_fullname',
'name_change_spouse', 'name_change_spouse_fullname',
'other_orders_detail'],
'other_questions': ['address_to_send_official_document_street_you',
'address_to_send_official_document_city_you',
'address_to_send_official_document_prov_you',
'address_to_send_official_document_country_you',
'address_to_send_official_document_other_country_you',
'address_to_send_official_document_postal_code_you',
'address_to_send_official_document_fax_you',
'address_to_send_official_document_email_you',
'address_to_send_official_document_street_spouse',
'address_to_send_official_document_city_spouse',
'address_to_send_official_document_prov_spouse',
'address_to_send_official_document_country_spouse',
'address_to_send_official_document_other_country_spouse',
'address_to_send_official_document_postal_code_spouse',
'address_to_send_official_document_fax_spouse',
'address_to_send_official_document_email_spouse',
'divorce_take_effect_on',
'divorce_take_effect_on_specific_date'],
'filing_locations': ['court_registry_for_filing'],
}
"""
Dictionary for a list of court registries
"""
list_of_registries = ['Fort St. John', 'Dawson Creek', 'Prince Rupert', 'Terrace', 'Smithers', 'Prince George', 'Quesnel',
'Williams Lake', 'Campbell River', 'Powell River', 'Courtenay', 'Port Alberni', 'Duncan', 'Nanaimo',
'Victoria', 'Golden', 'Kamloops', 'Salmon Arm', 'Vernon', 'Kelowna', 'Penticton', 'Nelson', 'Rossland',
'Cranbrook', 'Chilliwack', 'New Westminster', 'Vancouver', 'Fort Nelson', 'Revelstoke',]
""" List of court registries """
list_of_registries = ['Fort St. John', 'Dawson Creek', 'Prince Rupert',
'Terrace', 'Smithers', 'Prince George', 'Quesnel',
'Williams Lake', 'Campbell River', 'Powell River',
'Courtenay', 'Port Alberni', 'Duncan', 'Nanaimo',
'Victoria', 'Golden', 'Kamloops', 'Salmon Arm', 'Vernon',
'Kelowna', 'Penticton', 'Nelson', 'Rossland', 'Cranbrook',
'Chilliwack', 'New Westminster', 'Vancouver',
'Fort Nelson', 'Revelstoke']

+ 45
- 1
edivorce/fixtures/Question.json View File

@ -542,7 +542,7 @@
"name": "Please enter the details for any other orders that you are asking for.",
"description": "For step 8 other orders, Form 1 7. Other",
"summary_order": 51,
"required": "Required"
"required": ""
},
"model": "core.question",
"pk": "other_orders_detail"
@ -740,5 +740,49 @@
},
"model": "core.question",
"pk": "court_registry_for_filing"
},
{
"fields": {
"name": "Are you asking for a name change?",
"description": "For Step 10, Forms 38 and 52's Orders sections",
"summary_order": 71,
"required": "Required"
},
"model": "core.question",
"pk": "name_change_you"
},
{
"fields": {
"name": "Please enter the full name",
"description": "For Step 10, Forms 38 and 52's Orders sections",
"summary_order": 72,
"required": "Conditional",
"conditional_target": "name_change_you",
"reveal_response": "YES"
},
"model": "core.question",
"pk": "name_change_you_fullname"
},
{
"fields": {
"name": "Is your spouse asking for a name change?",
"description": "For Step 10, Forms 38 and 52's Orders sections",
"summary_order": 71,
"required": "Required"
},
"model": "core.question",
"pk": "name_change_spouse"
},
{
"fields": {
"name": "Please enter the full name",
"description": "For Step 10, Forms 38 and 52's Orders sections",
"summary_order": 72,
"required": "Conditional",
"conditional_target": "name_change_spouse",
"reveal_response": "YES"
},
"model": "core.question",
"pk": "name_change_spouse_fullname"
}
]

Loading…
Cancel
Save