add deadlines
[cavote.git] / templates / show_votes.html
1 {% extends "layout.html" %}
2 {% block body %}
3 <h2>Administration - Liste des votes</h2>
4
5 <h3> Votes </h3>
6 {% if session.logged_in %}
7 <form action="{{ url_for('add_vote') }}" method=post class=add-vote>
8 <dl>
9 <dt>Titre&nbsp;:
10 <dd><input type=text size=30 name=title>
11 <dt>Description&nbsp;:
12 <dd><textarea name=description rows=5 cols=40></textarea>
13 <dd><input type=submit value=Paf>
14 </dl>
15 </form>
16 {% endif %}
17 <ul class=votes>
18 {% for vote in votes %}
19 <li><h2>{{ vote.title }} - {{ vote.description|safe }} </h2>
20 {{ vote.date }}
21 {% else %}
22 <li><em>Pas encore de votes</em>
23 {% endfor %}
24 </ul>
25 Retour à l'<a href="/">accueil</a>
26
27 {% endblock %}
28