only show financial verification alert on requests index page if relevant

This commit is contained in:
dandds 2018-08-09 14:10:17 -04:00
parent a9dfa005a9
commit 5f9b589465
2 changed files with 24 additions and 17 deletions

View File

@ -3,6 +3,7 @@ from flask import render_template, g, url_for
from . import requests_bp from . import requests_bp
from atst.domain.requests import Requests from atst.domain.requests import Requests
from atst.models.request_status_event import RequestStatus
def map_request(request): def map_request(request):
@ -33,4 +34,6 @@ def requests_index():
mapped_requests = [map_request(r) for r in requests] mapped_requests = [map_request(r) for r in requests]
return render_template("requests.html", requests=mapped_requests) pending_fv = any(r["status"] == RequestStatus.PENDING_FINANCIAL_VERIFICATION.value for r in mapped_requests)
return render_template("requests.html", requests=mapped_requests, pending_financial_verification=pending_fv)

View File

@ -40,22 +40,26 @@
{% else %} {% else %}
{{ Alert('Pending Financial Verification', {% if pending_financial_verification %}
message="
<p> {{ Alert('Pending Financial Verification',
The next step is to create a Task Order associated with JEDI Cloud. message="
Please contact a Contracting Officer (KO), Contracting Officer <p>
Representative (COR), or a Financial Manager to help with this step. The next step is to create a Task Order associated with JEDI Cloud.
</p> Please contact a Contracting Officer (KO), Contracting Officer
<p> Representative (COR), or a Financial Manager to help with this step.
Once the Task Order has been created, you will be asked to provide </p>
details about the task order in the Financial Verification step. <p>
</p> Once the Task Order has been created, you will be asked to provide
<p> details about the task order in the Financial Verification step.
<i>Learn more</i> about the JEDI Task Order and the Financial Verification process. </p>
</p> <p>
" <i>Learn more</i> about the JEDI Task Order and the Financial Verification process.
) }} </p>
"
) }}
{% endif %}
<div class="col col--grow"> <div class="col col--grow">