{% extends "layout.html" %}
{% block body %}
- <h2>Administration - Liste des votes</h2>
- <h3> Votes </h3>
+<br />
+<br />
+ <h2>Liste des votes</h2>
+ <ul class=votes>
+ {% for vote in votes %}
+ <li style="list-style-image: url(/static/img/icon-cog.png)"><h2>{{ vote.title }}</h2>
+ <br />
+ <div class="well" style="width:80%">
+ <div class="row">
+ <div class="span4">
+ <h4>Deadline : {{ vote.date }} </h4>
+ <br />
+ <div class="progress progress-striped">
+ <div class="bar"
+ style="width: 60%;"></div>
+ </div></div>
+ <div class="span4">
+ <h4>Documents</h4>
+ </div>
+ <div class="span4">
+ <h4>Notes</h4>
+ {{ vote.description|safe }}
+ </div></div></div>
+ {% else %}
+ <li>Pas encore de votes</li>
+ {% endfor %}
+ </ul>
{% if session.logged_in %}
+ <h2> Ajouter un vote </h2>
<form action="{{ url_for('add_vote') }}" method=post class=add-vote>
<dl>
- <dt>Titre :
+ <dt>Question soumise au vote :
<dd><input type=text size=30 name=title>
- <dt>Description :
+ <dt>Description (facultative) :
<dd><textarea name=description rows=5 cols=40></textarea>
- <dd><input type=submit value=Paf>
+ <dd><input type=submit class="btn" 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 %}