1 {% extends
"layout.html" %}
2 {% block subtitle %}Administrer les votes{% endblock %}
5 <a class=
"pull-right btn btn-primary btn-small" href=
"{{ url_for('admin_vote_add') }}">+ Nouveau vote
</a>
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-success">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><span {% if vote.date_end < today %}
style=
"color: red;"{% endif %}
>{{ vote.date_end }}
</span></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_anonymous %}
<span class=
"label">anonymous
</span>{% endif %}
32 {% if vote.is_public %}
<span class=
"label">public
</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>
37 <a href=
"#delete{{ vote.voteid }}" data-toggle=
"modal" class=
"btn btn-mini btn-danger">Supprimer
</a>
40 <div class=
"modal hide fade" id=
"delete{{ vote.voteid }}">
41 <div class=
"modal-header">
42 <button type=
"button" class=
"close" data-dismiss=
"modal">×
</button>
43 <h3>Suppression d'uun vote
</h3>
45 <div class=
"modal-body">
46 <p>Voulez-vous vraiment supprimer le vote
<strong>{{ vote.title }}
</strong> ?
</p>
48 <div class=
"modal-footer">
49 <a href=
"{{ url_for('admin_vote_del', idvote=vote.voteid) }}" class=
"btn btn-danger">Confirmer
</a>
50 <a href=
"#" class=
"btn" data-dismiss=
"modal">Annuler
</a>
56 <a class=
"pull-right btn btn-primary btn-small" href=
"{{ url_for('admin_vote_add') }}">+ Nouveau vote
</a>
58 <strong>Légende :
</strong>
60 <li><span class=
"label">transparent
</span> : Les votants peuvent voir les votes des autres
</li>
61 <li><span class=
"label">anonymous
</span> : Les suffrages du vote sont déliés de l’identité de leur votant
</li>
62 <li><span class=
"label">public
</span> : Tout le monde peut voir le vote
</li>