Browse Source

DIV-922: Fixed the review page shows only one child.

pull/160/head
Charles Shin 6 years ago
parent
commit
38d725f3fc
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      edivorce/apps/core/templatetags/summary_format.py

+ 3
- 2
edivorce/apps/core/templatetags/summary_format.py View File

@ -144,7 +144,7 @@ def format_children(context, source):
child_support_orders = {'want_parenting_arrangements', 'order_respecting_arrangement', 'order_for_child_support'}
tags = '<tbody>'
tags = format_html('<tbody>')
# process mapped questions first
working_source = source.copy()
for title, questions in question_to_heading.items():
@ -198,7 +198,8 @@ def format_children(context, source):
child_counter = 1
for child in json.loads(item['value']):
tags = format_html(
'{}{}{}{}{}{}',
'{}{}{}{}{}{}{}',
tags,
format_review_row_heading('Child {}'.format(child_counter), 'review-child-heading'),
format_row('Child\'s name', child['child_name']),
format_row('Birth date', child['child_birth_date']),


Loading…
Cancel
Save