diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py
index 9cab2ffc..b01e1f25 100644
--- a/changedetectionio/forms.py
+++ b/changedetectionio/forms.py
@@ -422,15 +422,18 @@ class quickWatchForm(Form):
# Common to a single watch and the global settings
class commonSettingsForm(Form):
+ from . import processors
- notification_urls = StringListField('Notification URL List', validators=[validators.Optional(), ValidateAppRiseServers(), ValidateJinja2Template()])
- notification_title = StringField('Notification Title', default='ChangeDetection.io Notification - {{ watch_url }}', validators=[validators.Optional(), ValidateJinja2Template()])
+ extract_title_as_title = BooleanField('Extract
from document and use as watch title', default=False)
+ fetch_backend = RadioField(u'Fetch Method', choices=content_fetchers.available_fetchers(), validators=[ValidateContentFetcherIsReady()])
notification_body = TextAreaField('Notification Body', default='{{ watch_url }} had a change.', validators=[validators.Optional(), ValidateJinja2Template()])
notification_format = SelectField('Notification format', choices=valid_notification_formats.keys())
- fetch_backend = RadioField(u'Fetch Method', choices=content_fetchers.available_fetchers(), validators=[ValidateContentFetcherIsReady()])
- extract_title_as_title = BooleanField('Extract from document and use as watch title', default=False)
+ notification_title = StringField('Notification Title', default='ChangeDetection.io Notification - {{ watch_url }}', validators=[validators.Optional(), ValidateJinja2Template()])
+ notification_urls = StringListField('Notification URL List', validators=[validators.Optional(), ValidateAppRiseServers(), ValidateJinja2Template()])
+ processor = RadioField( label=u"Processor - What do you want to achieve?", choices=processors.available_processors(), default="text_json_diff")
webdriver_delay = IntegerField('Wait seconds before extracting text', validators=[validators.Optional(), validators.NumberRange(min=1,
message="Should contain one or more seconds")])
+
class importForm(Form):
from . import processors
processor = RadioField(u'Processor', choices=processors.available_processors(), default="text_json_diff")
diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html
index 3baf4603..0c3dfecb 100644
--- a/changedetectionio/templates/edit.html
+++ b/changedetectionio/templates/edit.html
@@ -67,16 +67,9 @@
{{ render_field(form.url, placeholder="https://...", required=true, class="m-d") }}
Some sites use JavaScript to create the content, for this you should use the Chrome/WebDriver Fetcher
You can use variables in the URL, perfect for inserting the current date and other logic, help and examples here
-
- {% if watch['processor'] == 'text_json_diff' %}
- Current mode: Webpage Text/HTML, JSON and PDF changes.
- Switch to re-stock & Price detection mode for single product pages
- {% else %}
- Current mode: Re-stock detection.
- Switch to Webpage Text/HTML, JSON and PDF changes mode.
- {% endif %}
-
-
+
+
+ {{ render_field(form.processor) }}
{{ render_field(form.title, class="m-d") }}