From e9a0c757170bdca411fc5eb8677e8b9691bd84cb Mon Sep 17 00:00:00 2001 From: ariannedee Date: Wed, 2 Sep 2020 15:21:35 -0700 Subject: [PATCH] Extract progress icon from overview --- edivorce/apps/core/templates/overview.html | 60 +++++++++------------- 1 file changed, 24 insertions(+), 36 deletions(-) diff --git a/edivorce/apps/core/templates/overview.html b/edivorce/apps/core/templates/overview.html index bb4b6efe..a1c96995 100644 --- a/edivorce/apps/core/templates/overview.html +++ b/edivorce/apps/core/templates/overview.html @@ -11,89 +11,77 @@

Complete This Divorce Questionnaire

- + Qualifying Questions - {% if step_status.prequalification == 'Started' %} Started - {% elif step_status.prequalification == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.prequalification with_status=True %} - + Step 1
What Are You Asking For?
- {% if step_status.which_orders == 'Started' %} Started - {% elif step_status.which_orders == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.which_orders with_status=True %}
- + Step 2
Your information
- {% if step_status.your_information == 'Started' %} Started - {% elif step_status.your_information == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.your_information with_status=True %}
- + Step 3
Your spouse
- {% if step_status.your_spouse == 'Started' %} Started - {% elif step_status.your_spouse == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.your_spouse with_status=True %}
- + Step 4
Your marriage
- {% if step_status.your_marriage == 'Started' %} Started - {% elif step_status.your_marriage == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.your_marriage with_status=True %}
- + Step 5
Your separation
- {% if step_status.your_separation == 'Started' %} Started - {% elif step_status.your_separation == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.your_separation with_status=True %}
{% if children_of_marriage == 'YES' or derived.has_children_of_marriage %} - + Step {% step_order step="children" %}
Your children
- {% if step_status.your_children == 'Started' %} Started - {% elif step_status.your_children == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.your_children with_status=True %}
{% endif %} {% if 'Spousal support' in which_orders.0.value|load_json %} - + Step {% step_order step="support" %}
Spousal support
- {% if step_status.spousal_support == 'Started' %} Started - {% elif step_status.spousal_support == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.spousal_support with_status=True %}
{% endif %} {% if 'Division of property and debts' in which_orders.0.value|load_json %} - + Step {% step_order step="property" %}
Property and debt
- {% if step_status.property_and_debt == 'Started' %} Started - {% elif step_status.property_and_debt == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.property_and_debt with_status=True %}
{% endif %} {% if 'Other orders' in which_orders.0.value|load_json %} - + Step {% step_order step="other_orders" %}
Other orders
- {% if step_status.other_orders == 'Started' %} Started - {% elif step_status.other_orders == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.other_orders with_status=True %}
{% endif %} - + Step {% step_order step="other_questions" %}
Other questions
- {% if step_status.other_questions == 'Started' %} Started - {% elif step_status.other_questions == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.other_questions with_status=True %}
- + Step {% step_order step="location" %}
Filing location
- {% if step_status.filing_locations == 'Started' %} Started - {% elif step_status.filing_locations == 'Complete' %} Completed {% endif %} + {% include "partials/progress_icon.html" with step_status_string=step_status.filing_locations with_status=True %}