1 {% extends
"layout.html" %}
5 <h2 class='page-header'
>{{ vote.title }}
</h2>
6 <table class=
"table table-condensed table-striped table-bordered">
10 {% for choice in choices %}
11 <th>{{ choice.name }}
</th>
18 {% if vote.is_transparent %}
19 {% for user in users %}
21 <td>{{ user.username }}
</td>
22 {% for choice in choices %}
23 <th>{% if choice in user.choices %}OUI{% else %}NON{% endif %}
</th>
28 <div class=
"alert alert-info">Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
</div>
29 <!-- :TODO:maethor:20120528: Afficher le vote de l'utilisateur -->
33 <form class=
"form-inline" action=
"{{ url_for('vote', idvote=vote.id) }}" method=
"post">
35 <td><input type='text'
name=
"username" value='{{ session.user.name }}' disabled
/></td>
36 {% if vote.is_multiple %}
37 {% for choice in choices %}
38 <td><input type='checkbox'
name=
"{{ choice.id }}" /></td>
41 {% for choice in choices %}
42 <td><input type='radio'
name=
"{{ choice.id }}" /></td>
45 <td><input type=
"submit" class=
"btn btn-primary" value=
"OK" /></td>
51 {% if vote.is_transparent %}
53 <td style=
"text-align: right">Somme
</td>
54 {% for choice in choices %}
66 <dl class=
"dl-horizontal">
67 <dt>Publié par
<dd><code>maethor
</code>
68 <dt>Début le
<dd><code>{{ vote.date_begin }}
</code>
69 <dt>Deadline le
<dd><code>{{ vote.date_end }}
</code>
70 <dt>Groupe
<dd><code>{{ vote.rolename }}
</code>
71 <dt>Catégorie
<dd><code>{{ vote.category }}
</code>
74 <dt>Description :
<dd>{{ vote.description }}
77 {% for attachment in attachments %}
78 <li><a href=
"{{ attachment.url }}">{{ attachment.url }}
</a></li>