ccpo should only see review form on review screen if request is pending CCPO action
This commit is contained in:
parent
139103b2ce
commit
d3c98523c4
@ -26,6 +26,9 @@ def task_order_dictionary(task_order):
|
||||
def render_approval(request, form=None):
|
||||
data = request.body
|
||||
pending_final_approval = Requests.is_pending_ccpo_approval(request)
|
||||
pending_review = (
|
||||
Requests.is_pending_ccpo_acceptance(request) or pending_final_approval
|
||||
)
|
||||
if pending_final_approval and request.task_order:
|
||||
data["task_order"] = task_order_dictionary(request.task_order)
|
||||
|
||||
@ -34,6 +37,7 @@ def render_approval(request, form=None):
|
||||
data=data,
|
||||
request_id=request.id,
|
||||
status=request.status.value,
|
||||
pending_review=pending_review,
|
||||
financial_review=pending_final_approval,
|
||||
pdf_available=request.task_order and request.task_order.pdf,
|
||||
f=form or CCPOReviewForm(),
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
{% if pending_review %}
|
||||
<section class='panel'>
|
||||
<header class='panel__heading'>
|
||||
<h2 class='h3'>Approval Notes</h2>
|
||||
@ -53,6 +54,7 @@
|
||||
</div>
|
||||
<h4 class="h3">Mission Authorizing Official</h4>
|
||||
|
||||
|
||||
<div class='form-row'>
|
||||
|
||||
<div class='form-col form-col--half'>
|
||||
@ -124,6 +126,7 @@
|
||||
<span>Cancel</span>
|
||||
</a>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<section class='panel'>
|
||||
<header class='panel__heading'>
|
||||
|
Loading…
x
Reference in New Issue
Block a user