12345678910111213141516171819202122232425262728 |
- {% extends "layout.html" %}
- {% block body %}
- <h2>Administration - Liste des votes</h2>
- <h3> Votes </h3>
- {% if session.logged_in %}
- <form action="{{ url_for('add_vote') }}" method=post class=add-vote>
- <dl>
- <dt>Titre :
- <dd><input type=text size=30 name=title>
- <dt>Description :
- <dd><textarea name=description rows=5 cols=40></textarea>
- <dd><input type=submit value=Paf>
- </dl>
- </form>
- {% endif %}
- <ul class=votes>
- {% for vote in votes %}
- <li><h2>{{ vote.title }} - {{ vote.description|safe }} </h2>
- {{ vote.date }}
- {% else %}
- <li><em>Pas encore de votes</em>
- {% endfor %}
- </ul>
- Retour à l'<a href="/">accueil</a>
- {% endblock %}
|