show_votes.html 733 B

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