diff --git a/edivorce/apps/core/templates/pdf/form35.html b/edivorce/apps/core/templates/pdf/form35.html index d205af30..94e064c9 100644 --- a/edivorce/apps/core/templates/pdf/form35.html +++ b/edivorce/apps/core/templates/pdf/form35.html @@ -1,5 +1,6 @@ {% load static %} {% load input_field %} +{% load format_utils %} @@ -69,25 +70,30 @@

- draft of the order sought; + {% checkbox True %} draft of the order sought;

- proof that the case is an undefended family law case; + {% checkbox True %} proof that the case is an undefended family law case;

- certificate of the registrar in Form F36; + {% checkbox True %} certificate of the registrar in Form F36;

- filing fee. + {% checkbox True %} filing fee.

- proof of service of the notice of family claim or counterclaim, as the case may be. + {% checkbox True %} proof of service of the notice of family claim or counterclaim, as the case may be.

- Child Support Affidavit in Form F37. + {% if responses.num_actual_children > 0 %} + {% checkbox True %} + {% else %} + {% checkbox False %} + {% endif %} + Child Support Affidavit in Form F37.

- affidavit in Form F38. + {% checkbox True %} affidavit in Form F38.

@@ -108,8 +114,8 @@

Signature of

- filing party - lawyer for filing party(ies) + {% checkbox False %} filing party + {% checkbox False %} lawyer for filing party(ies)

@@ -137,9 +143,9 @@

Signature of

- filing party - lawyer for filing party(ies) -

+ {% checkbox False %} filing party + {% checkbox False %} lawyer for filing party(ies) +

diff --git a/edivorce/apps/core/views/pdf.py b/edivorce/apps/core/views/pdf.py index e5942b9f..ab6acbe3 100644 --- a/edivorce/apps/core/views/pdf.py +++ b/edivorce/apps/core/views/pdf.py @@ -22,12 +22,14 @@ def form(request, form_number): responses = get_responses_from_db(request.user) if (form_number == '1' or form_number.startswith('37') or - form_number.startswith('38')): + form_number.startswith('38') or + form_number.startswith('35')): # 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) actual = json.loads(responses.get('claimant_children', '[]')) total = len(actual) + responses['num_actual_children'] = len(actual) responses['children'] = [actual[i] if i < total else {} for i in range(0, max(under + over, total))]