{% load get_item %}
{% if rule.field in model.fields_by_name %}
{% with field=model.fields_by_name|get_item:rule.field %}
{% include "./_filter_selector.html" with key="field" selected=rule.field %}
{% with operator=field.operators_by_name|get_item:rule.operator %}
{% include operator.template with prefix=prefix rule=rule operator=operator %}
{% if not is_root %}
{% include "./_filter_buttons.html" with is_top=is_top is_bottom=is_bottom can_delete=can_delete prefix=prefix %}
{% endif %}
{% endwith %}