Show vote
[cavote.git] / templates / show_votes.html
1 {% extends "layout.html" %}
2 {% block body %}
3 <h2>Liste des votes</h2>
4 {% for vote in votes %}
5 <article>
6 <div class="well">
7 <h3><a href="{{ url_for('show_vote', idvote=vote.id) }}">{{ vote.title }}</a></h3>
8 <hr />
9 <div class="row">
10 <div class="span4">
11 <h4>Deadline : {{ vote.date_end }} </h4>
12 <br />
13 <div class="progress progress-striped">
14 <div class="bar"
15 style="width: {{ vote.pourcent }}%;"></div>
16 </div></div>
17 <div class="span4">
18 <h4>Documents</h4>
19 </div>
20 <div class="span4">
21 <h4>Notes</h4>
22 {{ vote.description|safe }}
23 </div></div></div>
24 </article>
25 {% else %}
26 <div class="alert">Il n'y a pas encore de votes. Désolé.</div>
27 {% endfor %}
28 {% endblock %}