Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
re2o
Commits
fdb0b0b1
Commit
fdb0b0b1
authored
Jan 15, 2021
by
jr-garnier
Committed by
Gabriel Detraz
Jan 24, 2021
Browse files
fix: Use bootstrap class for fa-check and fa-times color instead of hardcoded value
parent
a2c0ab66
Changes
2
Hide whitespace changes
Inline
Side-by-side
cotisations/templates/cotisations/aff_cost_estimate.html
View file @
fdb0b0b1
...
...
@@ -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>
...
...
re2o/templatetags/design.py
View file @
fdb0b0b1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment