{% from '_helpers.html' import render_field, render_checkbox_field %} {% if form.tag_overrides_restock() %}

{{ _('Note! A Group tag overrides the restock and price detection here.') }}

{% endif %}
{{ render_field(form.processor_config_restock_diff.in_stock_processing) }}
{{ render_checkbox_field(form.processor_config_restock_diff.follow_price_changes) }} {{ _('Changes in price should trigger a notification') }}
{{ render_field(form.processor_config_restock_diff.price_change_min, placeholder=watch.get('restock', {}).get('price')) }} {# TRANSLATORS: CJK fonts lack native italics; allow substitution with conventional local styling. dennis-ignore: W303 #} {{ _('Minimum amount, Trigger a change/notification when the price drops below this value.')|safe }}
{{ render_field(form.processor_config_restock_diff.price_change_max, placeholder=watch.get('restock', {}).get('price')) }} {# TRANSLATORS: CJK fonts lack native italics; allow substitution with conventional local styling. dennis-ignore: W303 #} {{ _('Maximum amount, Trigger a change/notification when the price rises above this value.')|safe }}
{{ render_field(form.processor_config_restock_diff.price_change_threshold_percent) }} {{ _('Price must change more than this % since the previous check to trigger a change.') }}
{# TRANSLATORS: Amounts are illustrative. You may localise the currency and adjust both figures, as long as the 2% relationship is preserved. #} {{ _('For example, if the previous check saw the product at $1,000 USD, 2% would mean it has to change more than $20 since then.')|safe }}