{% extends 'base.html' %} {% block content %} {% from '_helpers.html' import render_field, render_checkbox_field, render_button, render_ternary_field, render_time_schedule_form %} {% from '_common_fields.html' import render_common_settings_form %}
{#- Which group this is, the tabs alone don't say #}

{{ _('Group: %(name)s', name=data.title) }}

{{ render_field(form.title, placeholder="https://...", required=true, class="m-d") }}
{{ render_field(form.url_match_pattern, class="m-d") }} {{ _('Automatically applies this tag to any watch whose URL matches. Supports wildcards: *example.com* or plain substring: github.com/myorg')|safe }}
{% if matching_watches %}
    {% for w_uuid, w in matching_watches.items() %}
  • {{ w.label }}
  • {% endfor %}
{% endif %}
{%- set tag_colour = data.get('tag_colour')|safe_css_colour -%}
{{ _('Leave unchecked to use the auto-generated colour based on the tag name.') }}
{%- if not llm_features_disabled %}
{% include "edit/include_llm_intent.html" %}
{%- endif -%}
{# TRANSLATORS: CJK fonts lack native italics; allow substitution with conventional local styling. dennis-ignore: W303 #}

{{ _('These settings are added to any existing watch configurations.')|safe }}

{% include "edit/include_subtract.html" %}

{{ _('Text filtering') }}

{% include "edit/text-options.html" %}
{# rendered sub Template #} {% if extra_form_content %}
{{ extra_form_content|safe }}
{% endif %} {#- Off by default: what is chosen on these tabs (and on Time Between Check) does nothing until it is switched on -#}
{{ _("What is set here is not used until it is switched on, so it can be set up ahead of time. A watch in several groups takes the first group that is switched on.") }}
{{ render_field(form.fetch_backend_group_mode) }}
{{ render_field(form.fetch_backend) }}
{% if form.proxy %}
{#- First on the tab, and outside the part that is dimmed while the group's proxy is switched off -#}
Bright Data {{ _('Getting 403 Access Denied? Set up the Web Unlocker proxy with Bright Data, choose it below, and put those watches in this group.', url=url_for('settings.settings_page') ~ '#proxies')|safe }}
{{ _("What is set here is not used until it is switched on, so it can be set up ahead of time. A watch in several groups takes the first group that is switched on.") }}
{{ render_field(form.proxy_group_mode) }}
{{ render_field(form.proxy) }}
{% endif %}
{{ _("What is set here is not used until it is switched on, so it can be set up ahead of time. A watch in several groups takes the first group that is switched on.") }}
{{ render_field(form.time_between_check_group_mode) }}
{#- Dimmed while the mode above is "Don't use" (same on Request and Proxy), still editable so it can be set up ahead of time -#}
{{ render_field(form.time_between_check, class="time-check-widget") }} {{ _('The interval/amount of time between each check.') }} {{ _('Leave empty to keep the system default and only use the time schedule below.') }}
{{ render_time_schedule_form(form, available_timezones, timezone_default_config) }}
{{ render_ternary_field(form.notification_muted, BooleanField=True) }}
{{ render_field(form.notification_group_mode) }} {{ _("The last two send this group's notification separately, with the title, body and format set here.") }}

{#- Dimmed while muted, not used, and while they are only what a watch with none of its own falls back on -#}
{% if 1 %}
{{ render_checkbox_field(form.notification_screenshot) }} {{ _('Use with caution!') }} {{ _('This will easily fill up your email storage quota or flood other storages.') }}
{% endif %}
{% if has_default_notification_urls %}
{{ _('Look out!') }} {{ _('There are system-wide notification URLs enabled, this form will override notification settings for this watch only ‐ an empty Notification URL list here will still send notifications.', url=url_for('settings.notifications.apprise'))|safe }}
{% endif %} {{ _('Use system defaults') }} {{ render_common_settings_form(form, emailprefix, settings_application, extra_notification_token_placeholder_info) }}
{{ render_button(form.save_button) }}
{% endblock %}