Users can see waiting votes, votes can be terminated
[cavote.git] / templates / votes.html
1 {% extends "layout.html" %}
2 {% block subtitle %}
3 Liste des votes
4 {% endblock %}
5 {% block body %}
6 {% for vote in votes %}
7 <div>
8 <div class="row well">
9 <div class="span4">
10 <h3><a href="{{ url_for('vote', idvote=vote.voteid) }}">{{ vote.title }}</a></h3>
11 <div class="progress progress-striped {% if vote.nb_votes == vote.max_votes %}progress-success{% endif %}">
12 <div class="bar" style="width: {{ vote.percent }}%;"></div>
13 </div>
14 </div>
15 <div class="span3">
16 <h4>Deadline : {{ vote.date_end }} </h4>
17 <h4>Groupe : {{ vote.groupname }}</h4>
18 <h4>Categorie : {{ vote.category }}</h4>
19 </div>
20 <div class="span3">
21 <h4>Notes</h4>
22 <p>
23 {{ vote.description|safe }}
24 </p>
25 </div>
26 </div>
27 {% else %}
28 <div class="alert">Il n'y a pas encore de votes. Désolé.</div>
29 {% endfor %}
30 {% endblock %}