Skip to content

Commit a429223

Browse files
authored
Re #42 - custom title (#98)
1 parent 59eb839 commit a429223

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

backend/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def edit_page(uuid):
378378
if request.method == 'POST' and form.validate():
379379
update_obj = {'url': form.url.data.strip(),
380380
'tag': form.tag.data.strip(),
381+
'title': form.title.data.strip(),
381382
'headers': form.headers.data
382383
}
383384

backend/forms.py

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class watchForm(Form):
111111
minutes_between_check = html5.IntegerField('Maximum time in minutes until recheck',
112112
[validators.Optional(), validators.NumberRange(min=1)])
113113
css_filter = StringField('CSS Filter')
114+
title = StringField('Title')
114115

115116
ignore_text = StringListField('Ignore Text', [ListRegex()])
116117
notification_urls = StringListField('Notification URL List')

backend/templates/edit.html

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<div class="pure-control-group">
88
{{ render_field(form.url, placeholder="https://...", size=30, required=true) }}
99
</div>
10+
<div class="pure-control-group">
11+
{{ render_field(form.title, size=30) }}
12+
</div>
1013
<div class="pure-control-group">
1114
{{ render_field(form.tag, size=10) }}
1215
</div>

0 commit comments

Comments
 (0)