Add /add page and cli.py for updating feeds

This commit is contained in:
Joakim Hellsén 2024-05-21 17:25:11 +02:00
commit 8cea0bd347
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
8 changed files with 130 additions and 57 deletions

16
templates/add.html Normal file
View file

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block content %}
<h2>Add feeds</h2>
<form method="post" action='{{ url_for("add_feed") }}'>
<p>
<label for="feed_urls">Feed URLs</label>
<textarea id="feed_urls"
name="feed_urls"
rows="4"
cols="50"
required
placeholder="Enter the URLs of the feeds you want to add"></textarea>
</p>
<button type="submit">Add feeds</button>
</form>
{% endblock content %}