Browse Source

DIV-827

pull/160/head
Justin Johnson 7 years ago
parent
commit
5c2ef8f041
6 changed files with 176 additions and 379 deletions
  1. +5
    -0
      edivorce/apps/core/static/css/weasyprint.css
  2. +1
    -1
      edivorce/apps/core/templates/dashboard/print_form.html
  3. +50
    -43
      edivorce/apps/core/templates/pdf/form37.html
  4. +112
    -68
      edivorce/apps/core/templates/pdf/form38.html
  5. +0
    -262
      edivorce/apps/core/templates/pdf/form38_we.html
  6. +8
    -5
      edivorce/apps/core/views/pdf.py

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

@ -234,6 +234,10 @@ ol.parens-list {
ol.parens-list > li {
list-style: none;
position: relative;
padding-left: 0;
}
ol.parens-list > li > ul > li {
padding-left: 0;
}
ol.parens-list > li:before {
@ -243,6 +247,7 @@ ol.parens-list > li:before {
left: -2.5em;
}
.th-left {
text-align: left !important;
}


+ 1
- 1
edivorce/apps/core/templates/dashboard/print_form.html View File

@ -273,7 +273,7 @@
</div>
</div>
<p class="review-buttons">
<a href="{% url 'pdf_form' '38_we' %}" class="btn btn-primary spinner"
<a href="{% url 'pdf_form' '38' %}" class="btn btn-primary spinner"
target="_blank"><i class="fa fa-print" aria-hidden="true"></i>
Review and Print
</a>


+ 50
- 43
edivorce/apps/core/templates/pdf/form37.html View File

@ -119,49 +119,55 @@
<li>
<p>The following is true to the best of my information and belief.</p>
<p>(a) Parties:</p>
<table class="table table-fixed table-bordered">
<tr>
<th style="text-align: left">Claimant 1's name</th>
<th style="text-align: left">Province of residence</th>
</tr>
<tr>
<td>{% response responses.name_you %}</td>
<td>{% response responses.address_to_send_official_document_prov_you %}</td>
</tr>
<tr>
<th style="text-align: left">Claimant 2's name</th>
<th style="text-align: left">Province of residence</th>
</tr>
<tr>
<td>{% response responses.name_spouse %}</td>
<td>{% response responses.address_to_send_official_document_prov_spouse %}</td>
</tr>
</table>
<p class="force-break">(b) Children:</p>
<table class="table table-bordered">
<tr>
<th>Child's name</th>
<th>Birthdate</th>
<th>Age</th>
<th>Child now living with</th>
<th>Relationship to claimant&nbsp;1</th>
<th>Relationship to claimant&nbsp;2</th>
</tr>
<ol class="parens-list">
<li>
<p>Parties:</p>
<table class="table table-fixed table-bordered">
<tr>
<th style="text-align: left">Claimant 1's name</th>
<th style="text-align: left">Province of residence</th>
</tr>
<tr>
<td>{% response responses.name_you %}</td>
<td>{% response responses.address_to_send_official_document_prov_you %}</td>
</tr>
<tr>
<th style="text-align: left">Claimant 2's name</th>
<th style="text-align: left">Province of residence</th>
</tr>
<tr>
<td>{% response responses.name_spouse %}</td>
<td>{% response responses.address_to_send_official_document_prov_spouse %}</td>
</tr>
</table>
</li>
<li>
<p class="force-break">Children:</p>
<table class="table table-bordered">
<tr>
<th>Child's name</th>
<th>Birthdate</th>
<th>Age</th>
<th>Child now living with</th>
<th>Relationship to claimant&nbsp;1</th>
<th>Relationship to claimant&nbsp;2</th>
</tr>
{% for child in responses.children %}
<tr>
<td>{{ child.child_name }}</td>
<td>{{ child.child_birth_date|date_formatter }} &nbsp;</td>
<td>{{ child.child_birth_date|age }}</td>
<td>{{ child.child_live_with|claimantize }}</td>
<td>{{ child.child_relationship_to_you }}</td>
<td>{{ child.child_relationship_to_spouse }}</td>
</tr>
<tr>
<td>{{ child.child_name }}</td>
<td>{{ child.child_birth_date|date_formatter }} &nbsp;</td>
<td>{{ child.child_birth_date|age }}</td>
<td>{{ child.child_live_with|claimantize }}</td>
<td>{{ child.child_relationship_to_you }}</td>
<td>{{ child.child_relationship_to_spouse }}</td>
</tr>
{% endfor %}
</table>
</table>
</li>
</ol>
</li>
@ -177,7 +183,7 @@
<li> <!-- 4 -->
{% if responses.how_will_calculate_income == 'using specific rules' %}
<ol style="list-style-type: lower-alpha;">
<ol class="parens-list">
<li>Claimant 1's annual income as determined under sections 15 to
20 of the Guidelines:
{{ responses.annual_gross_income|money }}
@ -318,7 +324,8 @@
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %}
{% include 'pdf/partials/notary_signature.html' with name=responses.name_you %}
{% elif responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %}
{% endif %}
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %}
{% include 'pdf/partials/notary_signature.html' with name=responses.name_spouse %}
{% endif %}
{% include 'pdf/partials/fact_sheet_a.html' %}


+ 112
- 68
edivorce/apps/core/templates/pdf/form38.html View File

@ -22,7 +22,6 @@
</head>
<body>
<div class="print-wrapper">
<h1 class="text-center">Form F38 <br>(Rule 10-10 (2))</h1>
@ -63,38 +62,65 @@
</p>
<p>
I,
{% if responses.name_claimant %}
{% include "partials/name_with_alias.html" with name=responses.name_claimant use_other_name=responses.any_other_name_claimant other_names=responses.other_name_claimant %}
{% if responses.which_claimant == 'both' %}We{% else %}I{% endif %},
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %}
{% if responses.name_you %}
{% include "partials/name_with_alias.html" with name=responses.name_you use_other_name=responses.any_other_name_you other_names=responses.other_name_you %}
{% else %}<span class="form-entry not-complete"></span>{% endif %},
of
{% required responses.address_to_send_official_document_street_claimant trail=',' %}
{% required responses.address_to_send_official_document_city_claimant size=100 trail=',' %}
{% if responses.address_to_send_official_document_prov_claimant %}
{{ responses.address_to_send_official_document_prov_claimant }},
{% required responses.address_to_send_official_document_street_you trail=',' %}
{% required responses.address_to_send_official_document_city_you size=100 trail=',' %}
{% if responses.address_to_send_official_document_prov_you %}
{{ responses.address_to_send_official_document_prov_you }},
{% endif %}
{% if responses.address_to_send_official_document_country_you == 'Other' %}
{% required responses.address_to_send_official_document_other_country_you size=100 trail=',' %}
{% else %}
{% required responses.address_to_send_official_document_country_you size=100 trail=',' %}
{% endif %}
{% required responses.address_to_send_official_document_postal_code_you size=100 trail=',' %}
{% required responses.occupation_you %},<br />
{% endif %}
{% if responses.which_claimant == 'both' %}and<br />{% endif %}
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %}
{% if responses.name_spouse %}
{% include "partials/name_with_alias.html" with name=responses.name_spouse use_other_name=responses.any_other_name_spouse other_names=responses.other_name_spouse %}
{% else %}<span class="form-entry not-complete"></span>{% endif %}, of
{% required responses.address_to_send_official_document_street_spouse trail=',' %}
{% required responses.address_to_send_official_document_city_spouse size=100 trail=',' %}
{% if responses.address_to_send_official_document_prov_spouse %}
{{ responses.address_to_send_official_document_prov_spouse }},
{% endif %}
{% if responses.address_to_send_official_document_country_claimant == 'Other' %}
{% required responses.address_to_send_official_document_other_country_claimant size=100 trail=',' %}
{% if responses.address_to_send_official_document_country_spouse == 'Other' %}
{% required responses.address_to_send_official_document_other_country_spouse size=100 trail=',' %}
{% else %}
{% required responses.address_to_send_official_document_country_claimant size=100 trail=',' %}
{% required responses.address_to_send_official_document_country_spouse size=100 trail=',' %}
{% endif %}
{% required responses.address_to_send_official_document_postal_code_claimant size=100 trail=',' %}
{% required responses.address_to_send_official_document_postal_code_spouse size=100 trail=',' %}
{% required responses.occupation_claimant %}
{% endif %}
<br />
SWEAR (OR AFFIRM) THAT:
</p>
<ol class="numbered-paragraphs force-break-last">
<li>
I am {% required responses.which_claimant %}.
{% if responses.which_claimant == 'both' %}
We are claimant 1 and claimant 2.
{% else %}
I am {{ responses.which_claimant }}.
{% endif %}
</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.
{% if responses.which_claimant == 'both' %}We{% else %}I{% endif %}
believe that the facts set out in the notice of family claim are true.
</li>
{% if responses.original_marriage_certificate == 'YES' %}
@ -108,15 +134,24 @@
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
Act</em>,
{% if responses.which_claimant == 'both' %}We{% else %}I{% endif %}
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
{% if responses.which_claimant == 'both' %}
Claimant 1 and Claimant 2 were
{% else %}
I was
{% endif %}
living separate and apart from my spouse at the start of this
family law case and
{% if responses.which_claimant == 'both' %}we{% else %}I{% endif %}
have lived separate and apart from my spouse
since {% required responses.separation_date|date_formatter %}, except:
{% multiple_values_to_list source=responses.reconciliation_period as periods %}
{% if periods != '[]' and responses.try_reconcile_after_separated == 'YES' %}
@ -128,78 +163,87 @@
</li>
<li>
I am neither directly nor indirectly a party to an agreement or
{% if responses.which_claimant == 'both' %}We are{% else %}I am{% endif %}
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).
{% if responses.children_of_marriage == 'YES' %}
<p>
There are children of the marriage as defined by
{{ responses.child_support_act }}, and
</p>
<ol class='parens-list'>
<li><p>those children are</p>
<table class="table table-fixed table-bordered">
<tr>
<th style="text-align: left">Name</th>
<th style="text-align: left">Age</th>
<th style="text-align: left">Birthdate [<em>dd/mmm/yyyy</em>]</th>
</tr>
{% for child in responses.children %}
<tr>
<td>{{ child.child_name }}&nbsp;</td>
<td>{{ child.child_birth_date|age }}</td>
<td>{{ child.child_birth_date|date_formatter }}</td>
</tr>
{% endfor %}
</table>
</li>
<li>
{% if responses.which_claimant == 'both' %}We{% else %}I{% endif %}
have sworn/affirmed a child support affidavit in Form F37, and
</li>
<li>
<p>the following arrangements for parenting have been made:</p>
{% if responses.order_respecting_arrangement %}
<ul>{{ responses.order_respecting_arrangement|striptags|linebreaksli }}</ul>
{% else %}
<div style="min-height: 1.5in"></div>
{% endif %}
</li>
</ol>
{% else %}
There are no children of the marriage as defined by the
<em>Divorce Act</em> (Canada).
{% endif %}
</li>
{% if responses.which_claimant == 'Claimant 1' and responses.name_change_you == 'YES' %}
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %}
{% 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 {% effective_date %}.
</li>
{% endif %}
{% endif %}
{% endif %}
{% if responses.which_claimant == 'Claimant 2' and responses.name_change_spouse == 'YES' %}
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %}
{% 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 {% effective_date %}.
</li>
{% endif %}
{% endif %}
{% endif %}
</ol>
<br><br><br>
<table class="table table-bordered">
<tbody>
<tr>
<td colname="c1"> SWORN (OR AFFIRMED) BEFORE </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> ME at <span class="form-entry not-complete">&nbsp;</span>, British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> on <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> . </td>
<td colname="c2"> ) </td>
<td colname="c3"> <span class="form-entry not-complete">&nbsp;</span> </td>
</tr>
<tr>
<td colname="c1"> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> <span class="form-entry not-complete">&nbsp;</span> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> A commissioner for taking </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> affidavits for British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
</tbody>
</table>
<p>
<span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
</p>
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %}
{% include 'pdf/partials/notary_signature.html' with name=responses.name_you %}
{% endif %}
{% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %}
{% include 'pdf/partials/notary_signature.html' with name=responses.name_spouse %}
{% endif %}
<hr />
<small>Printed on {% now "F jS, Y" %} from https://justice.gov.bc.ca/divorce</small>
</div>


+ 0
- 262
edivorce/apps/core/templates/pdf/form38_we.html View File

@ -1,262 +0,0 @@
{% load static %}
{% load composites %}
{% load input_field %}
{% load format_utils %}
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Form 38</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{ css_root }}/static/css/bootstrap-slim.min.css">
<link rel="stylesheet" type="text/css" href="{{ css_root }}/static/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="{{ css_root }}/static/css/weasyprint.css" />
{% include 'partials/gtm_head.html' %}
</head>
<body>
<div class="print-wrapper">
<h1 class="text-center">Form F38 <br>(Rule 10-10 (2))</h1>
<p class="text-right">
Court File No.: <span class="form-entry not-complete form-underline">&nbsp;</span>
</p>
<p class="text-right">
Court Registry: {% required responses.court_registry_for_filing %}
</p>
<p class="text-right">
This is the <span class="form-entry-sm not-complete form-underline"></span> affidavit
</p>
<p class="text-right">
of {% required responses.name_you %}
and {% required responses.name_spouse %}
in this case
</p>
<p class="text-right">
and was made on <span class="form-entry not-complete"></span>
</p>
<p class="text-center">
<em>In the Supreme Court of British Columbia</em>
</p>
<p>
Claimant 1: {% include "partials/name_with_alias.html" with name=responses.name_you use_other_name=responses.any_other_name_you other_names=responses.other_name_you class_name='form-entry_claimant' %}
</p>
<p>
Claimant 2: {% include "partials/name_with_alias.html" with name=responses.name_spouse use_other_name=responses.any_other_name_spouse other_names=responses.other_name_spouse class_name='form-entry_claimant' %}
</p>
<p class="text-center">
<strong>AFFIDAVIT - DESK ORDER DIVORCE</strong>
</p>
<p>
We,
{% if responses.name_you %}
{% include "partials/name_with_alias.html" with name=responses.name_you use_other_name=responses.any_other_name_you other_names=responses.other_name_you %}
{% else %}<span class="form-entry not-complete"></span>{% endif %},
of
{% required responses.address_to_send_official_document_street_you trail=',' %}
{% required responses.address_to_send_official_document_city_you size=100 trail=',' %}
{% if responses.address_to_send_official_document_prov_you %}
{{ responses.address_to_send_official_document_prov_you }},
{% endif %}
{% if responses.address_to_send_official_document_country_you == 'Other' %}
{% required responses.address_to_send_official_document_other_country_you size=100 trail=',' %}
{% else %}
{% required responses.address_to_send_official_document_country_you size=100 trail=',' %}
{% endif %}
{% required responses.address_to_send_official_document_postal_code_you size=100 trail=',' %}
{% required responses.occupation_you %},<br />
and <br />
{% if responses.name_spouse %}
{% include "partials/name_with_alias.html" with name=responses.name_spouse use_other_name=responses.any_other_name_spouse other_names=responses.other_name_spouse %}
{% else %}<span class="form-entry not-complete"></span>{% endif %}, of
{% required responses.address_to_send_official_document_street_spouse trail=',' %}
{% required responses.address_to_send_official_document_city_spouse size=100 trail=',' %}
{% if responses.address_to_send_official_document_prov_spouse %}
{{ responses.address_to_send_official_document_prov_spouse }},
{% endif %}
{% if responses.address_to_send_official_document_country_spouse == 'Other' %}
{% required responses.address_to_send_official_document_other_country_spouse size=100 trail=',' %}
{% else %}
{% required responses.address_to_send_official_document_country_spouse size=100 trail=',' %}
{% endif %}
{% required responses.address_to_send_official_document_postal_code_spouse size=100 trail=',' %}
{% required responses.occupation_spouse %},<br />
SWEAR (OR AFFIRM) THAT:
</p>
<ol class="numbered-paragraphs force-break-last">
<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' %}
<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>, 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 %}
<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 %}
</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 {% effective_date %}.
</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 {% effective_date %}.
</li>
{% endif %}
</ol>
<br><br><br>
<table class="table table-bordered">
<tbody>
<tr>
<td colname="c1"> SWORN (OR AFFIRMED) BEFORE </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> ME at <span class="form-entry not-complete">&nbsp;</span>, British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> on <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> . </td>
<td colname="c2"> ) </td>
<td colname="c3"> <span class="form-entry not-complete">&nbsp;</span> </td>
</tr>
<tr>
<td colname="c1"> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> <span class="form-entry not-complete">&nbsp;</span> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> A commissioner for taking </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> affidavits for British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
</tbody>
</table>
<p>
<span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
</p>
<hr />
<table class="table table-bordered">
<tbody>
<tr>
<td colname="c1"> SWORN (OR AFFIRMED) BEFORE </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> ME at <span class="form-entry not-complete">&nbsp;</span>, British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> on <span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span> . </td>
<td colname="c2"> ) </td>
<td colname="c3"> <span class="form-entry not-complete">&nbsp;</span> </td>
</tr>
<tr>
<td colname="c1"> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> <span class="form-entry not-complete">&nbsp;</span> </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td class="signature-line" colname="c1"> A commissioner for taking </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
<tr>
<td colname="c1"> affidavits for British Columbia </td>
<td colname="c2"> ) </td>
<td colname="c3"> </td>
</tr>
</tbody>
</table>
<p>
<span class="form-entry not-complete">&nbsp;</span><span class="form-entry not-complete">&nbsp;</span>
</p>
<hr />
<small>Printed on {% now "F jS, Y" %} from https://justice.gov.bc.ca/divorce</small>
</div>
</body>
</html>

+ 8
- 5
edivorce/apps/core/views/pdf.py View File

@ -12,8 +12,8 @@ from ..decorators import bceid_required
from ..utils.derived import get_derived_data
from ..utils.user_response import get_responses_from_db
letters = 'abcdefghijklmnopqrstuvwxyz'
exhibits = list(letters.upper()[::-1])
EXHIBITS = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'[::-1])
@bceid_required
def form(request, form_number):
@ -21,7 +21,8 @@ def form(request, form_number):
responses = get_responses_from_db(request.user)
if form_number == '1' or form_number.startswith('37'):
if (form_number == '1' or form_number.startswith('37') or
form_number.startswith('38')):
# Add an array of children that includes blanks for possible children
under = int(responses.get('number_children_under_19') or 0)
over = int(responses.get('number_children_under_19') or 0)
@ -41,7 +42,9 @@ def form(request, form_number):
responses = __add_claimant_info(responses, '_spouse')
responses['which_claimant'] = 'Claimant 2'
if form_number == '38_claimant1':
if form_number == "38":
responses["which_claimant"] = 'both'
elif form_number == '38_claimant1':
form_number = '38'
responses = __add_claimant_info(responses, '_you')
responses['which_claimant'] = 'Claimant 1'
@ -54,7 +57,7 @@ def form(request, form_number):
'css_root': settings.WEASYPRINT_CSS_LOOPBACK,
'responses': responses,
'derived': get_derived_data(responses),
'exhibits': exhibits[:],
'exhibits': EXHIBITS[:],
})


Loading…
Cancel
Save