{# The value input(s) for one constraint rule: used by the query builder and by advanced filters. `r` needs: constraint, prefix (input names start with it), needs, v, v2, vs, options. #} {% macro constraint_value(r) %} {% set itype = r.constraint.input_type() %} {% if r.needs in ('text', 'number', 'date') %} {% elif r.needs == 'count' %} {% elif r.needs == 'between' %}
{% elif r.needs == 'select' %} {% elif r.needs == 'multi' %}
{% for value, label in r.options %} {% else %}

{{ __('No options') }}

{% endfor %}
{% endif %} {% endmacro %}