1 | <!-- $Id$ --> |
---|
2 | [% INCLUDE 'includes/admin_menu.tt' %] |
---|
3 | |
---|
4 | [% poll = c.model('Vote').poll(voteid) %] |
---|
5 | |
---|
6 | <div style="float: left; width: 55%" class="box"> |
---|
7 | <form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST"> |
---|
8 | <table border=1> |
---|
9 | <tr> |
---|
10 | <td>Nombre de choix possible:</td> |
---|
11 | <td><input type="text" size="3" name="choice_count" value="[% c.req.param('choice_count') || poll.info('choice_count') | html %]"></td> |
---|
12 | </tr> |
---|
13 | |
---|
14 | <tr> |
---|
15 | <td>Nombre d'élu(s)<br>(si différent du nombre de choix)</td> |
---|
16 | <td><input type="text" size="3" name="elected_count" value="[% c.req.param('elected_count') || poll.raw_info('elected_count') | html %]"></td> |
---|
17 | </tr> |
---|
18 | |
---|
19 | <tr> |
---|
20 | <td>Nombre de choix libres:</td> |
---|
21 | <td><input type="text" size="3" name="free_choice" value="[% c.req.param('free_choice') || poll.info('free_choice') || 0 | html %]"></td> |
---|
22 | </tr> |
---|
23 | |
---|
24 | <tr> |
---|
25 | <td>Nombre de choix à partir de la liste des électeurs:</td> |
---|
26 | <td><input type="text" size="3" name="elected_choice" value="[% c.req.param('elected_choice') || poll.info('elected_choice') || 0 | html %]"></td> |
---|
27 | </tr> |
---|
28 | |
---|
29 | </table> |
---|
30 | <input type="submit" name="pollballot" value="Enregistrer"> |
---|
31 | </form> |
---|
32 | |
---|
33 | <hr> |
---|
34 | |
---|
35 | [% IF ! poll.choices_keys.size %] |
---|
36 | <p class="alert">Aucun choix configuré</p> |
---|
37 | [% ELSE %] |
---|
38 | [% FOREACH choicek = poll.choices_keys %] |
---|
39 | [% choice = poll.choice(choicek) %] |
---|
40 | <form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST"> |
---|
41 | [% loop.count %] - [% choice.info.label | html %] |
---|
42 | <input type="hidden" name="delch" value="[% choicek %]"> |
---|
43 | <input type="submit" name="del" value="Effacer"> |
---|
44 | </form> |
---|
45 | <br> |
---|
46 | [% END %] |
---|
47 | [% END %] |
---|
48 | <form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST"> |
---|
49 | Ajouter un choix:<br> |
---|
50 | <input type="text" name="addch"> |
---|
51 | <input type="submit" value="Ajouter"> |
---|
52 | </form> |
---|
53 | </div> |
---|
54 | |
---|
55 | <div style="float: right; width: 30%" class="ballot"> |
---|
56 | <p>Prévisualisation du bulletin:</p> |
---|
57 | [% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid, 'ballot') %] |
---|
58 | </div> |
---|
59 | |
---|
60 | <div style="clear: both"></div> |
---|