diff --git a/edivorce/apps/core/migrations/0023_auto_20201006_1314.py b/edivorce/apps/core/migrations/0023_auto_20201006_1314.py new file mode 100644 index 00000000..0e564c9b --- /dev/null +++ b/edivorce/apps/core/migrations/0023_auto_20201006_1314.py @@ -0,0 +1,41 @@ +# Generated by Django 2.2.15 on 2020-10-06 20:14 + +from django.db import migrations + +def migrate_name_forward(apps, schema_editor): + UserResponse = apps.get_model('core', 'UserResponse') + name_you_responses = UserResponse.objects.filter(question_id='name_you') + print(f"Converting {name_you_responses.count()} name_you responses") + for response in name_you_responses: + response.question_id = 'last_name_you' + response.save() + name_spouse_responses = UserResponse.objects.filter(question_id='name_spouse') + print(f"Converting {name_spouse_responses.count()} name_spouse responses") + for response in name_spouse_responses: + response.question_id = 'last_name_spouse' + response.save() + + +def migrate_name_backwards(apps, schema_editor): + UserResponse = apps.get_model('core', 'UserResponse') + last_name_you_responses = UserResponse.objects.filter(question_id='last_name_you') + print(f"Converting {last_name_you_responses.count()} last_name_you responses") + for response in last_name_you_responses: + response.question_id = 'name_you' + response.save() + last_name_spouse_responses = UserResponse.objects.filter(question_id='last_name_spouse') + print(f"Converting {last_name_spouse_responses.count()} last_name_spouse responses") + for response in last_name_spouse_responses: + response.question_id = 'name_spouse' + response.save() + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0022_auto_20200928_1157'), + ] + + operations = [ + migrations.RunPython(migrate_name_forward, migrate_name_backwards) + ] diff --git a/edivorce/apps/core/static/css/main.scss b/edivorce/apps/core/static/css/main.scss index 8b4b11e5..e801fc9e 100644 --- a/edivorce/apps/core/static/css/main.scss +++ b/edivorce/apps/core/static/css/main.scss @@ -847,6 +847,13 @@ input { width: 70%; } + &.input-medium { + width: 70%; + @media (min-width: 992px) { + width: 45%; + } + } + &.input-narrow { max-width: 100px; } diff --git a/edivorce/apps/core/templates/pdf/form1.html b/edivorce/apps/core/templates/pdf/form1.html index 908df671..7a0bdbc8 100644 --- a/edivorce/apps/core/templates/pdf/form1.html +++ b/edivorce/apps/core/templates/pdf/form1.html @@ -38,11 +38,11 @@

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' %} + {% 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' %}

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' %} + {% 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' %}

  diff --git a/edivorce/apps/core/templates/pdf/form35.html b/edivorce/apps/core/templates/pdf/form35.html index e7240192..62d1d614 100644 --- a/edivorce/apps/core/templates/pdf/form35.html +++ b/edivorce/apps/core/templates/pdf/form35.html @@ -36,16 +36,16 @@

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 class_name='form-entry_claimant' %} +{% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %}

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 class_name='form-entry_claimant' %} +{% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %} @@ -56,10 +56,10 @@

- Filed by: {{ responses.name_you }} + Filed by: {{ responses|name_you }}

- Filed by: {{ responses.name_spouse }} + Filed by: {{ responses|name_spouse }}

Required: final order, without a hearing, in the form attached diff --git a/edivorce/apps/core/templates/pdf/form36.html b/edivorce/apps/core/templates/pdf/form36.html index e37d3b86..12e1d3c1 100644 --- a/edivorce/apps/core/templates/pdf/form36.html +++ b/edivorce/apps/core/templates/pdf/form36.html @@ -1,4 +1,5 @@ {% load static %} +{% load format_utils %} @@ -34,16 +35,16 @@

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 class_name='form-entry_claimant' %} +{% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %}

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 class_name='form-entry_claimant' %} +{% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %} diff --git a/edivorce/apps/core/templates/pdf/form37.html b/edivorce/apps/core/templates/pdf/form37.html index 2c1dbc7e..e275257d 100644 --- a/edivorce/apps/core/templates/pdf/form37.html +++ b/edivorce/apps/core/templates/pdf/form37.html @@ -38,11 +38,11 @@ This is the affidavit
of {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %} - {% required responses.name_you %} + {% required responses|name_you %} {% endif %} {% if responses.which_claimant == 'both' %}and
{% endif %} {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %} - {% required responses.name_spouse %} + {% required responses|name_spouse %} {% endif %} in this case,
and was made on @@ -56,11 +56,11 @@

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' %}

+

{% 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' %}

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' %}

+

{% 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' %}

CHILD SUPPORT AFFIDAVIT @@ -70,8 +70,8 @@ {% 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 %} + {% 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 %}{% endif %}, of @@ -93,8 +93,8 @@ {% if responses.which_claimant == 'both' %}and
{% 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 %} + {% 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 %}{% endif %}, of {% required responses.address_to_send_official_document_street_spouse trail=',' %} @@ -136,7 +136,7 @@ Province of residence - {% response responses.name_you %} + {% response responses|name_you %} {% response responses.address_to_send_official_document_prov_you %} @@ -144,7 +144,7 @@ Province of residence - {% response responses.name_spouse %} + {% response responses|name_spouse %} {% response responses.address_to_send_official_document_prov_spouse %} @@ -334,10 +334,10 @@ {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %} - {% include 'pdf/partials/notary_signature.html' with name=responses.name_you %} + {% 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 %} + {% include 'pdf/partials/notary_signature.html' with name=responses|name_spouse %} {% endif %} {% include 'pdf/partials/fact_sheet_a.html' %} {% include 'pdf/partials/fact_sheet_b.html' %} diff --git a/edivorce/apps/core/templates/pdf/form38.html b/edivorce/apps/core/templates/pdf/form38.html index d18f440f..14c77a68 100644 --- a/edivorce/apps/core/templates/pdf/form38.html +++ b/edivorce/apps/core/templates/pdf/form38.html @@ -37,11 +37,11 @@ This is the affidavit
of {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %} - {% required responses.name_you %} + {% required responses|name_you %} {% endif %} {% if responses.which_claimant == 'both' %}and
{% endif %} {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 2' %} - {% required responses.name_spouse %} + {% required responses|name_spouse %} {% endif %} in this case,
and was made on @@ -52,11 +52,11 @@

- 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' %} + 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' %}

- 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' %} + 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' %}

@@ -66,8 +66,8 @@

{% 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 %} + {% 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 %}{% endif %}, of @@ -88,8 +88,8 @@ {% if responses.which_claimant == 'both' %}and
{% 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 %} + {% 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 %}{% endif %}, of {% required responses.address_to_send_official_document_street_spouse trail=',' %} @@ -241,10 +241,10 @@ {% if responses.which_claimant == 'both' or responses.which_claimant == 'Claimant 1' %} - {% include 'pdf/partials/notary_signature.html' with name=responses.name_you %} + {% 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 %} + {% include 'pdf/partials/notary_signature.html' with name=responses|name_spouse %} {% endif %} Printed on {% now "F jS, Y" %} from https://justice.gov.bc.ca/divorce diff --git a/edivorce/apps/core/templates/pdf/form52.html b/edivorce/apps/core/templates/pdf/form52.html index 405ec1d6..1bc3e42f 100644 --- a/edivorce/apps/core/templates/pdf/form52.html +++ b/edivorce/apps/core/templates/pdf/form52.html @@ -38,11 +38,11 @@

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' %} + {% 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' %}

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' %} + {% 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' %}

FINAL ORDER @@ -67,9 +67,9 @@

THIS COURT ORDERS that

Subject to section 12 of the Divorce Act (Canada), 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 %}{% endif %}, + {% 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 %}{% endif %}, and 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 %}{% endif %}, + {% 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 %}{% endif %}, who were married at {% if responses.where_were_you_married_city and responses.where_were_you_married_country %} {% required responses.where_were_you_married_city %}, @@ -167,14 +167,14 @@

Signature of 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 %} + {% 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 %}

 

Signature of 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 %} + {% 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 %}

diff --git a/edivorce/apps/core/templates/pdf/form96.html b/edivorce/apps/core/templates/pdf/form96.html index b8b95a87..5692ffcd 100644 --- a/edivorce/apps/core/templates/pdf/form96.html +++ b/edivorce/apps/core/templates/pdf/form96.html @@ -35,16 +35,16 @@

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 class_name='form-entry_claimant' %} + {% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %}

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 class_name='form-entry_claimant' %} + {% 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 class_name='form-entry_claimant' %} {% else %}   {% endif %} @@ -59,18 +59,18 @@  , am the lawyer acting for {{ responses.which_claimant }}, {% if responses.which_claimant == 'Claimant 1' %} - {% required responses.name_you %}. + {% required responses|name_you %}. {% endif %} {% if responses.which_claimant == 'Claimant 2' %} - {% required responses.name_spouse %}. + {% required responses|name_spouse %}. {% endif %}

{% checkbox False %}  I, {% if responses.which_claimant == 'Claimant 1' %} - {% required responses.name_you %}, + {% required responses|name_you %}, {% endif %} {% if responses.which_claimant == 'Claimant 2' %} - {% required responses.name_spouse %}, + {% required responses|name_spouse %}, {% endif %} am {{ responses.which_claimant }} and I am not represented by a lawyer.

@@ -82,10 +82,10 @@ is being submitted for filing electronically on behalf of {{ responses.which_claimant }}, {% if responses.which_claimant == 'Claimant 1' %} - {% required responses.name_you %}. + {% required responses|name_you %}. {% endif %} {% if responses.which_claimant == 'Claimant 2' %} - {% required responses.name_spouse %}. + {% required responses|name_spouse %}. {% endif %}

  • diff --git a/edivorce/apps/core/templates/prequalification/step_03.html b/edivorce/apps/core/templates/prequalification/step_03.html index 0e0562b6..d3771d67 100644 --- a/edivorce/apps/core/templates/prequalification/step_03.html +++ b/edivorce/apps/core/templates/prequalification/step_03.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% load input_field %} +{% load format_utils %} {% block title %}{{ block.super }}: Prequalification{% endblock %} @@ -126,24 +127,20 @@

    - Did {% if name_you %}{{ name_you }}{% else %}you{% endif %} - and {% if name_spouse %}{{ name_spouse }}{% else %}your spouse{% endif %} - attempt to reconcile after you separated + Did you and {% spouse_name %} attempt to reconcile after you separated {% if separation_date %} on {{ separation_date }}{% endif %}?

    diff --git a/edivorce/apps/core/templates/question/02_claimant.html b/edivorce/apps/core/templates/question/02_claimant.html index 865874ff..7400684c 100644 --- a/edivorce/apps/core/templates/question/02_claimant.html +++ b/edivorce/apps/core/templates/question/02_claimant.html @@ -10,11 +10,18 @@

    Step 2:Your Information (Claimant 1)

    -
    +

    Please enter your name (as it appears on your marriage certificate or registration of marriage) - {% if name_you_error %}{% include 'partials/required.html' %}{% endif %}

    - - {% input_field type="text" name="name_you" class="form-block input-wide response-textbox name" %} + {% if last_name_you_error or first_name_you_error %}{% include 'partials/required.html' %}{% endif %}
  • + +

    Last name

    + {% input_field type="text" name="last_name_you" class="form-block input-medium response-textbox name" %} +

    First name

    + {% input_field type="text" name="given_name_1_you" class="form-block input-medium response-textbox name" %} +

    Middle name If applicable

    + {% input_field type="text" name="given_name_2_you" class="form-block input-medium response-textbox name" %} +

    Middle name #2 If applicable

    + {% input_field type="text" name="given_name_3_you" class="form-block input-medium response-textbox name" %}