Add more pronounced colors

master
informatic 2020-04-24 14:29:52 +02:00
parent 3619b888a3
commit 9cc27d4756
1 changed files with 8 additions and 8 deletions

View File

@ -6,15 +6,15 @@
<a class="icon" role="button" data-toggle="popover" data-html="true" data-content="<b>Extras:</b><br />{{ row.extra or '' }}<hr><b>Remarks:</b><br />{{ row.remarks or '' }}"><span class="glyphicon glyphicon-comment"></span></a>
{% if row.shipping_id %}
{% set color = {
'new': 'text-primary',
'booked': 'text-info',
'collected': 'text-warning',
'inDelivery': 'text-warning',
'delivered': 'text-success',
'returned': 'text-danger',
}.get(row.shipment_status.name, 'text-default') %}
'new': '#337ab7',
'booked': '#820990',
'collected': 'orange',
'inDelivery': 'orange',
'delivered': 'green',
'returned': 'red',
}.get(row.shipment_status.name, 'black') %}
<a class="icon" data-target="#fa_modal_window" title="View tracking ({{ row.shipment_status.name }})" href="{{ url_for('faceshieldrequest.tracking', id=row.id) }}" data-toggle="modal">
<span class="fa fa-eye glyphicon glyphicon-plane {{ color }}"></span>
<span class="fa fa-eye glyphicon glyphicon-plane" style="color:{{color}}"></span>
</a>
{% endif %}
{% endblock %}