mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-29 19:32:14 +00:00
FIX: Update table row colouration for production statuses
TODO: Make the colour defined by the status as opposed to hardcoding it...
This commit is contained in:
@@ -3,12 +3,14 @@
|
|||||||
<!---TODO: When the ability to filter the list is added, remove the colours from the filter - specifically, stop greying out sold/binned stuff if it is being searched for--> <tr class="
|
<!---TODO: When the ability to filter the list is added, remove the colours from the filter - specifically, stop greying out sold/binned stuff if it is being searched for--> <tr class="
|
||||||
{% if item.status.name == 'Broken' %}
|
{% if item.status.name == 'Broken' %}
|
||||||
danger
|
danger
|
||||||
|
{% elif item.status.name == 'Scrapped'%}
|
||||||
|
danger
|
||||||
{% elif item.status.name == 'Lost'%}
|
{% elif item.status.name == 'Lost'%}
|
||||||
warning
|
warning
|
||||||
{% elif item.status.name == 'In Service'%}
|
{% elif item.status.name == 'Not Built Yet'%}
|
||||||
|
warning
|
||||||
|
{% elif item.status.name == 'Active'%}
|
||||||
success
|
success
|
||||||
{% elif item.status.name == 'Sold'%}
|
|
||||||
info
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
">
|
">
|
||||||
<td style="vertical-align: middle;"><a href="{% url 'asset_detail' item.asset_id %}">{{ item.asset_id }}</a></td>
|
<td style="vertical-align: middle;"><a href="{% url 'asset_detail' item.asset_id %}">{{ item.asset_id }}</a></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user