diff --git a/atst/routes/requests/requests_form.py b/atst/routes/requests/requests_form.py index 79a1535d..8e14b0e2 100644 --- a/atst/routes/requests/requests_form.py +++ b/atst/routes/requests/requests_form.py @@ -132,6 +132,10 @@ def view_request_details(request_id=None): or request.is_approved or request.is_pending_financial_verification_changes ) + requires_fv_action = ( + request.is_pending_financial_verification + or request.is_pending_financial_verification_changes + ) data = request.body if financial_review and request.task_order: @@ -140,11 +144,6 @@ def view_request_details(request_id=None): return render_template( "requests/details.html", data=data, - request_id=request.id, - status=request.status_displayname, - pending_ccpo_acceptance=request.is_pending_ccpo_acceptance, - pending_ccpo_approval=request.is_pending_ccpo_approval, - financial_verification=request.is_pending_financial_verification - or request.is_pending_financial_verification_changes, - financial_review=financial_review, + request=request, + requires_fv_action=requires_fv_action, ) diff --git a/templates/requests/details.html b/templates/requests/details.html index 3b18d8c9..89bdd105 100644 --- a/templates/requests/details.html +++ b/templates/requests/details.html @@ -5,23 +5,28 @@ {% block content %}
The CCPO will review and respond to your Financial Verification submission in 3 business days. You will be notified via email or phone.
Once the financial verification is approved you will be invited to create your JEDI Workspace and set-up your projects. Click here for more details.
{% endcall %} + + {% elif requires_fv_action %} + + {{ Alert('Pending Financial Verification', fragment="fragments/pending_financial_verification.html") }} + {% include 'requests/review_menu.html' %} + {% endif %}