Skip to content

Commit

Permalink
Fix approval.html for ARCHIVED state
Browse files Browse the repository at this point in the history
  • Loading branch information
a-belhadj authored and Sispheor committed Oct 20, 2023
1 parent 3db7442 commit 6612e78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/service_catalog/request_details/approval.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3 class="timeline-header">Admin review</h3>
comment.
</div>
{% endif %}
{% if object.get_state_display == "ACCEPTED" or object.get_state_display == "COMPLETE" or object.get_state_display == "FAILED" or object.get_state_display == "PROCESSING" or object.get_state_display == "REJECTED" %}
{% if object.get_state_display in "ACCEPTED,ARCHIVED,COMPLETE,FAILED,PROCESSING,REJECTED" %}
<details>
<summary>Survey</summary>
<table class="row">
Expand Down Expand Up @@ -247,7 +247,7 @@ <h3 class="timeline-header">Admin review</h3>
<span class="bg-{{ object.get_state_display | map_current_state:'ACCEPTED' }}">Accepted </span>
</div>
{% endif %}
{% if object.get_state_display == "ACCEPTED" or object.get_state_display == "COMPLETE" or object.get_state_display == "FAILED" or object.get_state_display == "PROCESSING" %}
{% if object.get_state_display in "ACCEPTED,ARCHIVED,COMPLETE,FAILED,PROCESSING" %}
<div>
<i class="fas fa-play fa-lg bg-{{ object.get_state_display | map_color_next_state:'ACCEPTED' }}"></i>
<div class="timeline-item">
Expand All @@ -257,7 +257,7 @@ <h3 class="timeline-header">Process the request</h3>
<div class="callout callout-info">
<i class="fas fa-pause text-info"></i> This request is ready to be processed.
</div>
{% elif object.get_state_display == "COMPLETE" or object.get_state_display == "FAILED" or object.get_state_display == "PROCESSING" %}
{% elif object.get_state_display in "COMPLETE,ARCHIVED,FAILED,PROCESSING" %}
<blockquote class="quote-success">
<i class="fas fa-check text-success"></i> Sent for processing by
<strong>{{ object.processed_by }}</strong>
Expand Down Expand Up @@ -285,7 +285,7 @@ <h3 class="timeline-header">Process the request</h3>
<div class="time-label">
<span class="bg-{{ object.get_state_display | map_current_state:'PROCESSING' }}">Processing</span>
</div>
{% if object.get_state_display == "PROCESSING" or object.get_state_display == "COMPLETE" %}
{% if object.get_state_display in "PROCESSING,ARCHIVED,COMPLETE" %}
<div>
<i class="fas fa-cog bg-success"></i>
<div class="timeline-item">
Expand Down

0 comments on commit 6612e78

Please sign in to comment.