render basic approval action for ccpo logs on request review screen
This commit is contained in:
parent
3e38b5ff1a
commit
738cbb1c65
@ -48,6 +48,8 @@ class RequestStatusEvent(Base):
|
|||||||
def log_name(self):
|
def log_name(self):
|
||||||
if self.new_status == RequestStatus.CHANGES_REQUESTED:
|
if self.new_status == RequestStatus.CHANGES_REQUESTED:
|
||||||
return "Denied"
|
return "Denied"
|
||||||
|
if self.new_status == RequestStatus.CHANGES_REQUESTED_TO_FINVER:
|
||||||
|
return "Denied"
|
||||||
elif self.new_status == RequestStatus.PENDING_FINANCIAL_VERIFICATION:
|
elif self.new_status == RequestStatus.PENDING_FINANCIAL_VERIFICATION:
|
||||||
return "Accepted"
|
return "Accepted"
|
||||||
else:
|
else:
|
||||||
|
@ -166,7 +166,8 @@
|
|||||||
<li>
|
<li>
|
||||||
<article class='approval-log__log-item'>
|
<article class='approval-log__log-item'>
|
||||||
<div>
|
<div>
|
||||||
<h3 class='approval-log__log-item__header'>{{ review.log_name }} by {{ review.full_name_reviewer }}</h3>
|
{{ review.log_name }}
|
||||||
|
<h3 class='approval-log__log-item__header'>{{ review.status.log_name }} by {{ review.full_name_reviewer }}</h3>
|
||||||
{% if review.comment %}
|
{% if review.comment %}
|
||||||
<p>{{ review.comment }}</p>
|
<p>{{ review.comment }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user