Translate badge text and simplify implementation

This commit is contained in:
Jonathan Senecal 2024-11-13 13:59:32 +00:00
parent 98c2b2f504
commit ea34d7bce8

View File

@ -130,7 +130,7 @@ Context:
{% if field.required %}
{% checkmark True true="Required" %}
{% elif field.conditional %}
{% tag "Conditional" %}
<span class="badge bg-yellow text-yellow-fg" >{% trans "Conditional" %}</span>
{% else %}
{{ ''|placeholder }}
{% endif %}