{% extends "alertprofiles/base.html" %} {% block tabcontent %}

Add expression

Filter {{ filter.name }}{{ form.filter }}
Match field {{ matchfield.name }}{{ form.match_field }}
{{ form.operator }}

{% if list_limited %}

There are more available options than the list_limit permits to show.

Showing {{ matchfield.list_limit }} of {{ form.number_of_choices }} available options.

{% endif %}
{{ form.value }}
{# FIXME it's not good practice to trust stuff in the database #} {% if matchfield.value_help %} {{ matchfield.value_help|safe }} {% endif %}

Operators

Below is a table with short descriptions for each available operator. Note that for lists, only "equals" and "in" makes sense, but an admin can, if he/she wishes, make every operator available for any matchfield, even the ones that allows for list selection.

Equals Exact match
Is greater Match field value must be greater than entered value.
Is greater or equal Match field value must be greater than or equal entered value.
Is less Match field value must be less than entered value.
Is less or equal Match field value must be less than or equal entered value.
Not equals Oposite of equals. Match field value and entered value must not be the same.
Starts with Match field value must start with entered value. Will also return true if match field and entered value are the same.
Ends with Match field value must end with entered value. Will also return true if match field and entered value are the same.
Contains Somewhere in the match field value the entered value must appear. Will also return true if match field and entered value are the same.
Regexp Enter a regular expression to compare against the match field value.
Wildcard Same as equals, except you can use wildcards (? or *) to denote "anything goes here".
In Match field value must be one of the selected values. For lists, just select multiple values, for text fields you can separate the different values with space.
{% endblock %}