Browse Source

DIV-1133: Show online filing options in navigation sidebar when on overview page

pull/170/head
ariannedee 5 years ago
parent
commit
d415f3c969
2 changed files with 12 additions and 0 deletions
  1. +8
    -0
      edivorce/apps/core/utils/question_step_mapping.py
  2. +4
    -0
      edivorce/apps/core/views/main.py

+ 8
- 0
edivorce/apps/core/utils/question_step_mapping.py View File

@ -284,6 +284,13 @@ question_step_mapping = {
'divorce_take_effect_on',
'divorce_take_effect_on_specific_date'],
'filing_locations': ['court_registry_for_filing'],
'signing_filing': ['how_to_sign',
'how_to_file',
'signing_location',
'signing_location_you',
'signing_location_spouse',
'email_you',
'email_spouse'],
}
page_step_mapping = {
@ -299,6 +306,7 @@ page_step_mapping = {
'other_orders': 'other_orders',
'other_questions': 'other_questions',
'location': 'filing_locations',
'signing_filing': 'signing_filing',
}
""" List of court registries """


+ 4
- 0
edivorce/apps/core/views/main.py View File

@ -179,6 +179,10 @@ def overview(request):
responses_dict_by_step['active_page'] = 'overview'
responses_dict_by_step['derived'] = get_derived_data(responses_dict)
# Dashnav needs filing option to determine which steps to show
for question in responses_dict_by_step['signing_filing']:
responses_dict_by_step[question['question_id']] = question['value']
response = render(request, 'overview.html', context=responses_dict_by_step)
# set this session variable after the page is already rendered


Loading…
Cancel
Save