1 {% extends
"layout.html" %}
3 <h2>{{ vote.title }}
</h2>
5 <div class=
"span10 offset1">
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 <!-- :TODO:maethor:20120528: Afficher les votes ici -->
21 <div class=
"alert alert-info">Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
</div>
22 <!-- :TODO:maethor:20120528: Afficher le vote de l'utilisateur -->
26 <form class=
"form-inline" action=
""> <!-- :TODO:maethor:20120528: Route -->
28 <td><input type='text'
name=
"username" value='{{ session.user.name }}' disabled
/></td>
29 {% if vote.is_multiple %}
30 {% for choice in choices %}
31 <td><input type='checkbox'
name=
"{{ choice.id }}" /></td>
34 {% for choice in choices %}
35 <td><input type='radio'
name=
"choice" value=
"{{ choice.id }}" /></td>
38 <td><input type=
"submit" class=
"btn btn-primary" value=
"OK" /></td>
44 {% if vote.is_transparent %}
46 <td style=
"text-align: right">Somme
</td>
47 {% for choice in choices %}