1 {% extends
"layout.html" %}
2 {% block subtitle %}Administrer les votes{% endblock %}
7 <div class=
"alert">Il n'y a aucun vote.
</div>
9 <table class=
"table table-striped">
22 {% for vote in votes %}
24 <td>{{ vote.title }}
</td>
25 <td>{% if vote.is_terminated %}
<span class=
"label label-sucess">Terminé
</span>{% else %}{% if vote.is_open %}
<span class=
"label label-info">Ouvert
</span>{% else %}
<span class=
"label label-important">Fermé
</span>{% endif %}{% endif %}
</td>
26 <td>{{ vote.date_end }}
</td>
27 <td>{{ vote.groupname }}
</td>
28 <td>{{ vote.category }}
</td>
30 {% if vote.is_transparent %}
<span class=
"label">transparent
</span>{% endif %}
31 {% if vote.is_public %}
<span class=
"label">public
</span>{% endif %}
32 {% if vote.is_multiplechoice %}
<span class=
"label">choix multiple
</span>{% endif %}
35 <a href=
"{{ url_for('vote', idvote=vote.voteid) }}" class=
"btn btn-success btn-mini">Voir
</a>
36 <a href=
"{{ url_for('admin_vote_edit', voteid=vote.voteid) }}" class=
"btn btn-mini">Éditer
</a>
43 <strong>Légende :
</strong>
45 <li><span class=
"label">transparent
</span> : Les utilisateurs peuvent voir les votes des autres
</li>
46 <li><span class=
"label">public
</span> : Tout le monde peut voir le vote
</li>
47 <li><span class=
"label">choix multiple
</span> : Les utilisateurs peuvent effectuer plusieurs choix
</li>