1 {% extends
"layout.html" %}
5 <h2 class='page-header'
>{{ vote.title }}
</h2>
6 {% if not vote.is_transparent %}
7 <div class=
"alert alert-info">Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
</div>
10 <table class=
"table table-condensed table-bordered table-votes">
14 {% for choice in choices %}
15 <th>{{ choice.name }}
</th>
22 {% for user in users %}
23 {% if vote.is_transparent or user.userid == session.user.id %}
25 <th>{% if 'user' in session and user.userid == session.user.id %}
<i class=
"icon-user"></i>{% endif %} {{ user.username }}
</th>
26 {% for choice in choices %}
27 {% if choice.id in user.choices %}
28 <td class=
"yes"><i class=
"icon-ok icon-white"></i></td>
30 <td class=
"no"></td>{% endif %}
32 <td>{% if 'user' in session and user.userid == session.user.id %}
<a href=
"{{ url_for('vote_deletechoices', idvote=vote.id, iduser=session.user.id) }}" class=
"btn btn-mini btn-danger" title=
"Supprimer"><i class=
"icon-remove icon-white"></a>{% endif %}
</td>
38 <form class=
"form-inline" action=
"{{ url_for('vote', idvote=vote.id) }}" method=
"post">
40 <th><input type='text'
name=
"username" value='{{ session.user.name }}' disabled
/></th>
41 {% if vote.is_multiplechoice %}
42 {% for choice in choices %}
43 <td><input type='checkbox'
name=
"{{ choice.id }}" /></td>
46 {% for choice in choices %}
47 <td><input type='radio'
name=
"{{ choice.id }}" /></td>
50 <td><input type=
"submit" class=
"btn btn-primary" value=
"OK" /></td>
57 {% if vote.is_transparent %}
60 {% for choice in choices %}
61 <td>{{ choice.nb }}
</td>
72 <strong>Avancement :
</strong> {{ vote.nb_votes }} / {{ vote.max_votes }}
73 <div class=
"progress progress-striped {% if vote.nb_votes == vote.max_votes %}progress-success{% endif %}">
74 <div class=
"bar" style=
"width: {{ vote.percent }}%;"></div>
76 <dl class=
"dl-horizontal">
77 <dt>Publié par
<dd><code>maethor
</code>
78 <dt>Début le
<dd><code>{{ vote.date_begin }}
</code>
79 <dt>Deadline le
<dd><code>{{ vote.date_end }}
</code>
80 <dt>Groupe
<dd><code>{{ vote.groupname }}
</code>
81 <dt>Catégorie
<dd><code>{{ vote.category }}
</code>
84 <dt>Description :
<dd>{{ vote.description }}
87 {% for attachment in attachments %}
88 <li><a href=
"{{ attachment.url }}">{{ attachment.url }}
</a></li>