Skip to content

Commit

Permalink
add "re-review" button when request fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Oct 24, 2023
1 parent ece45fb commit ce92cb1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions templates/service_catalog/request_details/approval.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,16 @@ <h3 class="timeline-header">Process the request</h3>
<div class="timeline-footer">
{% with args_filter="process,"|addstr:object.id %}
{% if args_filter|can_proceed_request_action and can_process_request %}
<a class="btn btn-primary"
{% with args_filter="accept,"|addstr:object.id %}
{% if args_filter|can_proceed_request_action and can_accept_request %}
<a class="btn btn-primary"
title="Review"
href="{% url 'service_catalog:request_accept' object.id %}">
<i class="fas fa-clipboard-check"></i> Review
</a>
{% endif %}
{% endwith %}
<a class="btn btn-success"
title="Process"
href="{% url 'service_catalog:request_process' object.id %}">
<i class="fas fa-play"></i> Process
Expand Down Expand Up @@ -327,7 +336,16 @@ <h3 class="timeline-header text-danger">Processing failed</h3>
<div class="timeline-footer">
{% with args_filter="process,"|addstr:object.id %}
{% if args_filter|can_proceed_request_action and can_process_request %}
<a class="btn btn-primary"
{% with args_filter="accept,"|addstr:object.id %}
{% if args_filter|can_proceed_request_action and can_accept_request %}
<a class="btn btn-primary"
title="Review"
href="{% url 'service_catalog:request_accept' object.id %}">
<i class="fas fa-clipboard-check"></i> Review
</a>
{% endif %}
{% endwith %}
<a class="btn btn-success"
title="Process"
href="{% url 'service_catalog:request_process' object.id %}">
<i class="fas fa-play"></i> Retry process
Expand Down

0 comments on commit ce92cb1

Please sign in to comment.