{%- extends 'base.html' -%} {%- block content -%} {%- from '_helpers.html' import render_simple_field, render_field, render_nolabel_field -%}

{{ _('Add a new web page change detection watch') }}

{{ render_nolabel_field(form.url, placeholder="https://...", required=true, class="pure-input-1") }}
{{ _('Enter a URL to get started!') }} {{ _('Enter a URL in the input box above to get started.') }}
{{ render_simple_field(form.processor) }}
{# Rendered by hand rather than with render_field(): the system-default entry is listed for explanation and has to render disabled, and WTForms can't carry a per-option disabled attribute through a RadioField's choices. #}
    {%- for browser in form.fetch_backend -%} {%- set unusable = browser.data in unusable_browsers -%} {{ browser(disabled=true) if unusable else browser() }}{{ browser.label }} {%- endfor -%}
{%- if llm_configured -%} {%- endif -%} {# No LLM intent available? Then narrowing by element is the only thing this page can do - selection is always on, so nothing is labelled or offered here, just the hint on how to use the preview. #} {{ _('Hover & click the preview to watch just one part of the page.') }}
{% if llm_configured %}
{% endif %}
{{ render_field(form.tags, value='', placeholder=_("Watch group / tag"), class="transparent-field") }}
{{ render_nolabel_field(form.watch_submit_button, title=_("Watch this URL!")) }} {{ render_nolabel_field(form.edit_and_watch_submit_button, title=_("Edit first then Watch")) }}
{%- endblock -%}