Re #42 - custom title (#98)

This commit is contained in:
dgtlmoon
2021-06-21 21:44:58 +10:00
committed by GitHub
parent 59eb83974e
commit a429223858
3 changed files with 5 additions and 0 deletions

View File

@@ -378,6 +378,7 @@ def changedetection_app(config=None, datastore_o=None):
if request.method == 'POST' and form.validate():
update_obj = {'url': form.url.data.strip(),
'tag': form.tag.data.strip(),
'title': form.title.data.strip(),
'headers': form.headers.data
}

View File

@@ -111,6 +111,7 @@ class watchForm(Form):
minutes_between_check = html5.IntegerField('Maximum time in minutes until recheck',
[validators.Optional(), validators.NumberRange(min=1)])
css_filter = StringField('CSS Filter')
title = StringField('Title')
ignore_text = StringListField('Ignore Text', [ListRegex()])
notification_urls = StringListField('Notification URL List')

View File

@@ -7,6 +7,9 @@
<div class="pure-control-group">
{{ render_field(form.url, placeholder="https://...", size=30, required=true) }}
</div>
<div class="pure-control-group">
{{ render_field(form.title, size=30) }}
</div>
<div class="pure-control-group">
{{ render_field(form.tag, size=10) }}
</div>