translations fo true/false yes /no

This commit is contained in:
matmair committed 2021-04-17 23:28:10 +02:00
1 parent 2be78f5d4c
commit 7a0a901c2b
2 files changed
+8 -2

No files matched your search

+4 -2
View File
@@ -1,5 +1,7 @@
{% load i18n %}
{% if value %}
<span class='label label-success'>Yes</span>
<span class='label label-success'>{% trans 'Yes' %}</span>
{% else %}
<span class='label label-warning'>No</span>
<span class='label label-warning'>{% trans 'No' %}</span>
{% endif %}