You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
7.4 KiB
134 lines
7.4 KiB
4 years ago
|
{% extends 'base.html' %}
|
||
|
{% block content %}
|
||
3 years ago
|
{% from '_helpers.jinja' import render_field %}
|
||
3 years ago
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
|
||
|
|
||
3 years ago
|
<div class="edit-form monospaced-textarea">
|
||
3 years ago
|
|
||
|
<div class="tabs">
|
||
|
<ul>
|
||
|
<li class="tab" id="default-tab"><a href="#general">General</a></li>
|
||
|
<li class="tab"><a href="#notifications">Notifications</a></li>
|
||
|
<li class="tab"><a href="#filters">Filters</a></li>
|
||
3 years ago
|
<li class="tab"><a href="#triggers">Triggers</a></li>
|
||
3 years ago
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="box-wrap inner">
|
||
|
<form class="pure-form pure-form-stacked"
|
||
|
action="{{ url_for('edit_page', uuid=uuid, next = request.args.get('next') ) }}" method="POST">
|
||
|
|
||
|
<div class="tab-pane-inner" id="general">
|
||
|
<fieldset>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.url, placeholder="https://...", required=true, class="m-d") }}
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.title, class="m-d") }}
|
||
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.tag) }}
|
||
3 years ago
|
<span class="pure-form-message-inline">Organisational tag/group name used in the main listing page</span>
|
||
3 years ago
|
</div>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.minutes_between_check) }}
|
||
|
{% if using_default_minutes %}
|
||
|
<span class="pure-form-message-inline">Currently using the <a
|
||
|
href="{{ url_for('settings_page', uuid=uuid) }}">default global settings</a>, change to another value if you want to be specific.</span>
|
||
|
{% else %}
|
||
|
<span class="pure-form-message-inline">Set to blank to use the <a
|
||
|
href="{{ url_for('settings_page', uuid=uuid) }}">default global settings</a>.</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
<fieldset class="pure-group">
|
||
|
{{ render_field(form.headers, rows=5, placeholder="Example
|
||
3 years ago
|
Cookie: foobar
|
||
|
User-Agent: wonderbra 1.0") }}
|
||
3 years ago
|
<span class="pure-form-message-inline">
|
||
|
Note: ONLY used by Basic fast Plaintext/HTTP Client
|
||
|
</span>
|
||
|
</fieldset>
|
||
3 years ago
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.fetch_backend) }}
|
||
|
<span class="pure-form-message-inline">
|
||
|
<p>Use the <strong>Basic</strong> method (default) where your watched sites don't need Javascript to render.</p>
|
||
|
<p>The <strong>Chrome/Javascript</strong> method requires a network connection to a running WebDriver+Chrome server. </p>
|
||
|
</span>
|
||
|
</div>
|
||
3 years ago
|
</fieldset>
|
||
4 years ago
|
</div>
|
||
3 years ago
|
<div class="tab-pane-inner" id="notifications">
|
||
|
<fieldset>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.notification_urls, rows=5, placeholder="Examples:
|
||
|
Gitter - gitter://token/room
|
||
|
Office365 - o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail
|
||
|
AWS SNS - sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo
|
||
|
SMTPS - mailtos://user:pass@mail.domain.com?to=receivingAddress@example.com
|
||
|
") }}
|
||
|
<span class="pure-form-message-inline">Use <a target=_new
|
||
|
href="https://github.com/caronc/apprise">AppRise URLs</a> for notification to just about any service!</span>
|
||
|
<span class="pure-form-message-inline">Note: This overrides any global settings notification URLs</span>
|
||
|
</div>
|
||
|
|
||
|
<div class="pure-controls">
|
||
|
{{ render_field(form.trigger_check, rows=5) }}
|
||
|
</div>
|
||
|
</fieldset>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
<div class="tab-pane-inner" id="filters">
|
||
|
<fieldset>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.css_filter, placeholder=".class-name or #some-id, or other CSS selector rule.",
|
||
|
class="m-d") }}
|
||
|
<span class="pure-form-message-inline">
|
||
3 years ago
|
<ul>
|
||
|
<li>CSS - Limit text to this CSS rule, only text matching this CSS rule is included.</li>
|
||
3 years ago
|
<li>JSON - Limit text to this JSON rule, using <a href="https://pypi.org/project/jsonpath-ng/">JSONPath</a>, prefix with <b>"json:"</b>, <a
|
||
|
href="https://jsonpath.com/" target="new">test your JSONPath here</a></li>
|
||
3 years ago
|
</ul>
|
||
3 years ago
|
Please be sure that you thoroughly understand how to write CSS or JSONPath selector rules before filing an issue on GitHub! <a
|
||
|
href="https://github.com/dgtlmoon/changedetection.io/wiki/CSS-Selector-help">here for more CSS selector help</a>.<br/>
|
||
3 years ago
|
</span>
|
||
3 years ago
|
</div>
|
||
|
|
||
|
</fieldset>
|
||
|
<fieldset class="pure-group">
|
||
|
{{ render_field(form.ignore_text, rows=5, placeholder="Some text to ignore in a line
|
||
|
/some.regex\d{2}/ for case-INsensitive regex
|
||
|
") }}
|
||
|
<span class="pure-form-message-inline">
|
||
3 years ago
|
Each line processed separately, any line matching will be ignored.<br/>
|
||
|
Regular Expression support, wrap the line in forward slash <b>/regex/</b>.
|
||
|
</span>
|
||
|
|
||
4 years ago
|
</fieldset>
|
||
3 years ago
|
</div>
|
||
4 years ago
|
|
||
3 years ago
|
<div class="tab-pane-inner" id="triggers">
|
||
|
<fieldset>
|
||
|
<div class="pure-control-group">
|
||
|
{{ render_field(form.trigger_text, rows=5, placeholder="Some text to wait for in a line
|
||
|
/some.regex\d{2}/ for case-INsensitive regex
|
||
|
") }}</br>
|
||
|
<span class="pure-form-message-inline">Text to wait for before triggering a change/notification, all text and regex are tested <i>case-insensitive</i>.</span><br/>
|
||
|
<span class="pure-form-message-inline">Trigger text is processed from the result-text that comes out of any <a href="#filters">CSS/JSON Filters</a> for this watch</span>.<br/>
|
||
|
<span class="pure-form-message-inline">Each line is process separately (think of each line as "OR")</span><br/>
|
||
|
<span class="pure-form-message-inline">Note: Wrap in forward slash / to use regex example: <span style="font-family: monospace; background: #eee">/foo\d/</span> </span>
|
||
|
</div>
|
||
|
</fieldset>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
<div id="actions">
|
||
|
<div class="pure-control-group">
|
||
4 years ago
|
|
||
3 years ago
|
<button type="submit" class="pure-button pure-button-primary">Save</button>
|
||
|
<a href="{{url_for('api_delete', uuid=uuid)}}"
|
||
|
class="pure-button button-small button-error ">Delete</a>
|
||
|
</div>
|
||
4 years ago
|
</div>
|
||
3 years ago
|
</form>
|
||
|
</div>
|
||
4 years ago
|
</div>
|
||
|
|
||
|
{% endblock %}
|