From b81e60c45e27d6baaa838278ebc00b76a4f26b25 Mon Sep 17 00:00:00 2001 From: ariannedee Date: Wed, 2 Sep 2020 15:22:01 -0700 Subject: [PATCH] Change Complete status to Completed --- .../core/templates/partials/progress.html | 22 +++++----- .../templates/partials/progress_icon.html | 13 ++++-- .../core/templates/question/12_review.html | 44 +++++++++---------- edivorce/apps/core/utils/step_completeness.py | 2 +- 4 files changed, 43 insertions(+), 38 deletions(-) diff --git a/edivorce/apps/core/templates/partials/progress.html b/edivorce/apps/core/templates/partials/progress.html index 75252335..e62a29f6 100644 --- a/edivorce/apps/core/templates/partials/progress.html +++ b/edivorce/apps/core/templates/partials/progress.html @@ -8,34 +8,34 @@ Qualifying Questions {% include "partials/progress_icon.html" with step_status_string=step_status.prequalification %} - + Step 1
What Are You Asking For?
{% include "partials/progress_icon.html" with step_status_string=step_status.which_orders %}
- + Step 2
Your information (Claimant 1)
{% include "partials/progress_icon.html" with step_status_string=step_status.your_information %}
- + Step 3
Your spouse (Claimant 2)
{% include "partials/progress_icon.html" with step_status_string=step_status.your_spouse%}
- + Step 4
Your marriage
{% include "partials/progress_icon.html" with step_status_string=step_status.your_marriage%}
- + Step 5
Your separation
{% include "partials/progress_icon.html" with step_status_string=step_status.your_separation%}
{% if children_of_marriage == 'YES' or derived.has_children_of_marriage %} - + Step {% step_order step="support" %}
Spousal support
{% include "partials/progress_icon.html" with step_status_string=step_status.spousal_support%} @@ -81,7 +81,7 @@ {% endif %} {% if 'Division of property and debts' in want_which_orders|load_json or 'Division of property and debts' in which_orders.0.value|load_json %} -
+ Step {% step_order step="property" %}
Property and debt
{% include "partials/progress_icon.html" with step_status_string=step_status.property_and_debt%} @@ -89,19 +89,19 @@ {% endif %} {% if 'Other orders' in want_which_orders|load_json or 'Other orders' in which_orders.0.value|load_json %} -
+ Step {% step_order step="other_orders" %}
Other orders
{% include "partials/progress_icon.html" with step_status_string=step_status.other_orders%}
{% endif %} - + Step {% step_order step="other_questions" %}
Other questions
{% include "partials/progress_icon.html" with step_status_string=step_status.other_questions%}
- + Step {% step_order step="location" %}
Filing location
{% include "partials/progress_icon.html" with step_status_string=step_status.filing_locations%} diff --git a/edivorce/apps/core/templates/partials/progress_icon.html b/edivorce/apps/core/templates/partials/progress_icon.html index bb47b2dd..74049c91 100644 --- a/edivorce/apps/core/templates/partials/progress_icon.html +++ b/edivorce/apps/core/templates/partials/progress_icon.html @@ -1,4 +1,9 @@ -{% if step_status_string == 'Started' %} -{% elif step_status_string == 'Complete' %} -{% elif step_status_string == 'Skipped' %} -{% endif %} \ No newline at end of file + + {% if with_status and step_status_string != 'Not started' %} + {{ step_status_string }} + {% endif %} + {% if step_status_string == 'Started' %} + {% elif step_status_string == 'Completed' %} + {% elif step_status_string == 'Skipped' %} + {% endif %} + \ No newline at end of file diff --git a/edivorce/apps/core/templates/question/12_review.html b/edivorce/apps/core/templates/question/12_review.html index 877036de..de26e178 100644 --- a/edivorce/apps/core/templates/question/12_review.html +++ b/edivorce/apps/core/templates/question/12_review.html @@ -31,13 +31,13 @@ -
+ -
+
Step 2: Your information
- {% if step_status.your_information != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.your_information != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -63,13 +63,13 @@
-
+
Step 3: Your spouse
- {% if step_status.your_spouse != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.your_spouse != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -79,13 +79,13 @@
-
+
Step 4: Your marriage
- {% if step_status.your_marriage != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.your_marriage != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -95,13 +95,13 @@
-
+
Step 5: Your separation
- {% if step_status.your_separation != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.your_separation != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -112,13 +112,13 @@
{% if derived.has_children_of_marriage %} -
+
Step {% step_order step="children" %}: Your children
- {% if step_status.your_children != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.your_children != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -130,13 +130,13 @@ {% endif %} {% if 'Spousal support' in which_orders.0.value|load_json %} -
+
Step {% step_order step="support" %}: Spousal support
- {% if step_status.spousal_support != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.spousal_support != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -148,13 +148,13 @@ {% 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 != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.property_and_debt != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -166,13 +166,13 @@ {% endif %} {% if 'Other orders' in which_orders.0.value|load_json %} -
+
Step {% step_order step="other_orders" %}: Other orders
- {% if step_status.other_orders != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.other_orders != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -183,13 +183,13 @@
{% endif %} -
+
Step {% step_order step="other_questions" %}: Other questions
- {% if step_status.other_questions != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.other_questions != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

@@ -199,13 +199,13 @@
-
+
Step {% step_order step="location" %}: Filing location
- {% if step_status.filing_locations != 'Complete' %}{% include 'partials/incomplete.html' %}{% endif %} + {% if step_status.filing_locations != 'Completed' %}{% include 'partials/incomplete.html' %}{% endif %}

Edit

diff --git a/edivorce/apps/core/utils/step_completeness.py b/edivorce/apps/core/utils/step_completeness.py index e8d3e5a8..f8fdbe1c 100644 --- a/edivorce/apps/core/utils/step_completeness.py +++ b/edivorce/apps/core/utils/step_completeness.py @@ -51,7 +51,7 @@ def get_step_completeness(questions_by_step): has_responses = True complete = is_complete(questions_dict) if complete: - status_dict[step] = "Complete" + status_dict[step] = "Completed" else: status_dict[step] = "Started" return status_dict