diff options
Diffstat (limited to 'pyaggr3g470r/templates/management.html')
-rw-r--r-- | pyaggr3g470r/templates/management.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/management.html b/pyaggr3g470r/templates/management.html new file mode 100644 index 00000000..ed7a5667 --- /dev/null +++ b/pyaggr3g470r/templates/management.html @@ -0,0 +1,32 @@ +{% extends "layout.html" %} +{% 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>Subscriptions</h1> + <p>You are subscribed to {{ nb_feeds }} <a href="/feeds">feeds</a>.</p> + </div> + + <div class="jumbotron"> + <h1>Database</h1> + <p>{{ nb_articles }} articles are stored in the database with {{ nb_unread_articles }} <a href="/unread/">unread articles</a>.</p> + </div> +</div><!-- /.container --> +{% endblock %}
\ No newline at end of file |