feat(software): prettify device software action

!5
This commit is contained in:
2024-05-17 19:34:59 +09:30
parent 9e801fa9eb
commit b2e1a460c8

View File

@ -121,7 +121,15 @@
<tr>
<td><a href="{% url 'ITAM:_device_view' pk=device.device.id %}">{{ device.device }}</a></td>
<td>{{ device.organization }}</td>
<td>{{ device.get_action_display }}</td>
<td>
{% if device.get_action_display == 'Install' %}
{% include 'icons/success_text.html.j2' with icon_text=device.get_action_display %}
{% elif device.get_action_display == 'Remove'%}
{% include 'icons/cross_text.html.j2' with icon_text=device.get_action_display %}
{% else %}
{{ device.get_action_display }}
{% endif %}
</td>
<td>Not Implemented</td>
<td>&nbsp;</td>
</tr>