{% load i18n %} {% comment %} Reusable partial for displaying boolean configuration values. Parameters: - label: The configuration label (e.g., "Task Acks Late:") - value: The boolean value to display - invert: (optional) If true, shows "enabled" as muted and "disabled" as positive (default: false) - warning: (optional) If true and enabled, shows warning styling (default: false) - help_text: (optional) Explanation text to show below the value {% endcomment %}
{{ label }}
{% if warning and value %} ⚠ {% trans "Enabled" %}{% if warning_text %} ({{ warning_text }}){% endif %} {% elif value %} {% if invert %} ✓ {% trans "Enabled" %} {% else %} ✓ {% trans "Enabled" %} {% endif %} {% else %} {% if invert %} ✗ {% trans "Disabled" %} {% else %} ✗ {% trans "Disabled" %} {% endif %} {% endif %} {% if help_text %}

{{ help_text }}

{% endif %}