Added an basic TextConstraint for part filtering.

This commit is contained in:
Jan Böhmer 2022-08-18 00:00:54 +02:00
parent f6239dfd50
commit f8562f9622
9 changed files with 234 additions and 7 deletions

View file

@ -8,4 +8,14 @@
<span class="input-group-text">{{ form.vars["text_suffix"] }}</span>
{% endif %}
</div>
{% endblock %}
{% block text_constraint_widget %}
<div class="input-group">
{{ form_widget(form.operator, {"attr": {"class": "form-select"}}) }}
{{ form_widget(form.value) }}
{% if form.vars["text_suffix"] %}
<span class="input-group-text">{{ form.vars["text_suffix"] }}</span>
{% endif %}
</div>
{% endblock %}