mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 09:26:27 +00:00
fix: Use bootstrap class for fa-check and fa-times color instead of hardcoded value
This commit is contained in:
parent
42ded799e4
commit
3d748e9e42
2 changed files with 4 additions and 4 deletions
|
@ -73,9 +73,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
<td>{{ estimate.id }}</td>
|
||||
<td>
|
||||
{% if estimate.final_invoice %}
|
||||
<a href="{% url 'cotisations:edit-custom-invoice' estimate.final_invoice.pk %}"><i style="color: #1ECA18;" class="fa fa-check"></i></a>
|
||||
<a href="{% url 'cotisations:edit-custom-invoice' estimate.final_invoice.pk %}"><i class="fa fa-check text-success"></i></a>
|
||||
{% else %}
|
||||
<i style="color: #D10115;" class="fa fa-times"></i>
|
||||
<i class="fa fa-times text-danger"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -31,9 +31,9 @@ def tick(valeur, autoescape=False):
|
|||
|
||||
if isinstance(valeur, bool):
|
||||
if valeur == True:
|
||||
result = '<i style="color: #1ECA18;" class="fa fa-check"></i>'
|
||||
result = '<i class="fa fa-check text-success"></i>'
|
||||
else:
|
||||
result = '<i style="color: #D10115;" class="fa fa-times"></i>'
|
||||
result = '<i class="fa fa-times text-danger"></i>'
|
||||
return mark_safe(result)
|
||||
|
||||
else: # if the value is not a boolean, display it as if tick was not called
|
||||
|
|
Loading…
Reference in a new issue