add approve need to request list
This commit is contained in:
parent
a195e0b6fc
commit
db61f35711
3 changed files with 61 additions and 1 deletions
|
|
@ -223,11 +223,24 @@
|
|||
<tr>
|
||||
<td>{{ item.instance.code }}</td>
|
||||
<td>{{ item.instance.process.name }}</td>
|
||||
<td class="text-primary">
|
||||
<td>
|
||||
{% if item.instance.status == 'completed' %}
|
||||
<a href="{% url 'processes:instance_summary' item.instance.id %}" class="text-primary">{{ item.instance.current_step.name|default:"--" }}</a>
|
||||
{% elif item.instance.current_step %}
|
||||
<a href="{% url 'processes:instance_steps' item.instance.id %}" class="text-primary">{{ item.instance.current_step.name }}</a>
|
||||
{% if item.current_step_approval_status %}
|
||||
<br>
|
||||
<small class="{% if item.current_step_approval_status.status == 'rejected' %}text-danger{% elif item.current_step_approval_status.status == 'approved' %}text-success{% else %}text-warning{% endif %}">
|
||||
{% if item.current_step_approval_status.status == 'rejected' %}
|
||||
<i class="bx bx-x-circle"></i>
|
||||
{% elif item.current_step_approval_status.status == 'approved' %}
|
||||
<i class="bx bx-check-circle"></i>
|
||||
{% else %}
|
||||
<i class="bx bx-time"></i>
|
||||
{% endif %}
|
||||
{{ item.current_step_approval_status.display }}
|
||||
</small>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
--
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue