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 <!-- :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 %}
59 <dl class=
"dl-horizontal">
60 <dt>Publié par
<dd><code>maethor
</code>
61 <dt>Début le
<dd><code>{{ vote.date_begin }}
</code>
62 <dt>Fin le
<dd><code>{{ vote.date_end }}
</code>
63 <dt>Groupe
<dd><code>{{ vote.rolename }}
</code>
64 <dt>Catégorie
<dd><code>{{ vote.category }}
</code>
67 <dt>Description :
<dd>{{ vote.description }}
70 {% for attachment in attachments %}
71 <li><a href=
"{{ attachment.url }}">{{ attachment.url }}
</a></li>