1 {% extends
"layout.html" %}
5 <h2 class='page-header'
>{{ vote.title }}
</h2>
7 {% if not vote.is_transparent %}
8 <div class=
"alert alert-info">Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
</div>
11 <table class=
"table table-condensed table-bordered table-votes">
15 {% for choice in choices %}
16 <th>{{ choice.name }}
</th>
23 {% for user in users %}
24 {% if vote.is_transparent or user.userid == session.user.id %}
26 <th>{% if 'user' in session and user.userid == session.user.id %}
<i class=
"icon-user"></i>{% endif %} {{ user.username }}
</th>
27 {% for choice in choices %}
28 {% if choice.id in user.choices %}
29 <td class=
"yes">OUI
</td>
31 <td class=
"no"></td>{% endif %}
33 <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">X
</a>{% endif %}
</td>
39 <form class=
"form-inline" action=
"{{ url_for('vote', idvote=vote.id) }}" method=
"post">
41 <th><input type='text'
name=
"username" value='{{ session.user.name }}' disabled
/></th>
42 {% if vote.is_multiplechoice %}
43 {% for choice in choices %}
44 <td><input type='checkbox'
name=
"{{ choice.id }}" /></td>
47 {% for choice in choices %}
48 <td><input type='radio'
name=
"{{ choice.id }}" /></td>
51 <td><input type=
"submit" class=
"btn btn-primary" value=
"OK" /></td>
58 {% if vote.is_transparent %}
61 {% for choice in choices %}
62 <td>{{ choice.nb }}
</td>
73 <dl class=
"dl-horizontal">
74 <dt>Publié par
<dd><code>maethor
</code>
75 <dt>Début le
<dd><code>{{ vote.date_begin }}
</code>
76 <dt>Deadline le
<dd><code>{{ vote.date_end }}
</code>
77 <dt>Groupe
<dd><code>{{ vote.groupname }}
</code>
78 <dt>Catégorie
<dd><code>{{ vote.category }}
</code>
81 <dt>Description :
<dd>{{ vote.description }}
84 {% for attachment in attachments %}
85 <li><a href=
"{{ attachment.url }}">{{ attachment.url }}
</a></li>