{% load i18n %} {% load wagtailflags_admin %} {% load i18n feature_flags flags_debug wagtailflags_admin %}

{{ flag|state_str }}

{% with flag|conditions_without_bool as conditions %} {% if conditions|length > 0 %} {% for condition in conditions %} {% endfor %}
Condition Value
{{ condition.condition }} {{ condition.value }} {% if condition.required %} Required {% else %} Optional {% endif %} {% if condition.obj %} {% endif %}
{% endif %} {% endwith %} {% if flag|enablable or flag|disablable %} {% if flag|bool_enabled %}Disable{% else %}Enable{% endif %} {{ flag.name }} {% if flag|required_conditions_without_bool|length > 0 %} when required conditions are met {% else %} for all requests {% endif %} {% endif %} Add a condition