diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 00:14:38 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 00:14:38 +0100 |
commit | e488df013ac33e4014bafb27417a8e87a762b3c0 (patch) | |
tree | d207112e032c37955729dcec760d5ee4209cc69d /pyaggr3g470r/templates | |
parent | Added pinboard icon. (diff) | |
download | newspipe-e488df013ac33e4014bafb27417a8e87a762b3c0.tar.gz newspipe-e488df013ac33e4014bafb27417a8e87a762b3c0.tar.bz2 newspipe-e488df013ac33e4014bafb27417a8e87a762b3c0.zip |
It is now possible to add and edit a feed.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/edit_feed.html | 22 | ||||
-rw-r--r-- | pyaggr3g470r/templates/feed.html | 1 | ||||
-rw-r--r-- | pyaggr3g470r/templates/management.html | 18 |
3 files changed, 23 insertions, 18 deletions
diff --git a/pyaggr3g470r/templates/edit_feed.html b/pyaggr3g470r/templates/edit_feed.html new file mode 100644 index 00000000..7bdf2717 --- /dev/null +++ b/pyaggr3g470r/templates/edit_feed.html @@ -0,0 +1,22 @@ +{% extends "layout.html" %} +{% block content %} +<div class="container"> + <div class="jumbotron"> + <h1>{{ action }}</h1> + <form action="" method="post" name="save"> + {{ form.hidden_tag() }} + + {{ form.title.label }} + {{ form.title(class_="form-control") }} {% for error in form.title.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} + + {{ form.link.label }} + {{ form.link(class_="form-control") }} {% for error in form.link.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} + + {{ form.site_link.label }} + {{ form.site_link(class_="form-control") }} {% for error in form.site_link.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} + + {{ form.submit(class_="btn") }} + </form> + </div> +</div><!-- /.container --> +{% endblock %}
\ No newline at end of file diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index 5808f233..e08ac159 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -4,6 +4,7 @@ <div class="jumbotron"> <h2>{{ feed.title }}</h2> <a href="/delete_feed/{{ feed.oid }}"><i class="glyphicon glyphicon-remove" title="Delete this feed"></i></a> + <a href="/edit_feed/{{ feed.oid }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a> <p>This feed contains {{ feed.articles|count }} <a href="/articles/{{ feed.oid }}">articles</a>.</p> <p>Address of the feed: <a href="{{ feed.link }}">{{ feed.link }}</a>.</p> <p>Address of the site: <a href="{{ feed.site_link }}">{{ feed.site_link }}</a>.</p> diff --git a/pyaggr3g470r/templates/management.html b/pyaggr3g470r/templates/management.html index c1e5ba64..031e3e7e 100644 --- a/pyaggr3g470r/templates/management.html +++ b/pyaggr3g470r/templates/management.html @@ -2,24 +2,6 @@ {% block content %} <div class="container"> <div class="jumbotron"> - <h1>Add a feed</h1> - <form action="/add_feed/" method="post" name="save"> - {{ form.hidden_tag() }} - - {{ form.title.label }} - {{ form.title(class_="form-control") }} {% for error in form.title.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} - - {{ form.link.label }} - {{ form.link(class_="form-control") }} {% for error in form.link.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} - - {{ form.site_link.label }} - {{ form.site_link(class_="form-control") }} {% for error in form.site_link.errors %} <span style="color: red;">{{ error }}</span>{% endfor %} - - {{ form.submit(class_="btn") }} - </form> - </div> - - <div class="jumbotron"> <h1>Your subscriptions</h1> <p>You are subscribed to {{ nb_feeds }} <a href="/feeds">feeds</a>.</p> <p>{{ nb_articles }} articles are stored in the database with {{ nb_unread_articles }} <a href="/unread/">unread articles</a>.</p> |