1 | [% vote = c.model('Vote') %] |
---|
2 | |
---|
3 | <table border="1"> |
---|
4 | <tr><th>Vote</th><th>Possibilité de vote</th></tr> |
---|
5 | <tr> |
---|
6 | <td valign="TOP"> |
---|
7 | <form action="[% c.uri_for(voteid) %]"> |
---|
8 | |
---|
9 | [% thisvote = vote.vote_info(voteid) %] |
---|
10 | |
---|
11 | Label: <input type="text" name="label" value="[% c.req.param('label') || thisvote.label | html %]"> |
---|
12 | <br> |
---|
13 | Description: <textarea name="description">[% c.req.param('description') || thisvote.description | html %]</textarea> |
---|
14 | <br> |
---|
15 | Debut du vote: |
---|
16 | <input type="text" name="start" value="[% c.req.param('start') || thisvote.start | html %]"> |
---|
17 | <br> |
---|
18 | Fin du vote: |
---|
19 | <input type="text" name="end" value="[% c.req.param('end') || thisvote.end | html %]"> |
---|
20 | <br> |
---|
21 | Nombre de choix possible: |
---|
22 | <input type="text" name="choice_count" value="[% c.req.param('choice_count') || thisvote.choice_count | html %]"> |
---|
23 | <br> |
---|
24 | Nombre de choix libres: |
---|
25 | <input type="text" name="free_choice" value="[% c.req.param('free_choice') || thisvote.free_choice | html %]"> |
---|
26 | <br> |
---|
27 | <input type="submit"> |
---|
28 | </form> |
---|
29 | </td> |
---|
30 | <td valign="TOP"> |
---|
31 | [% FOREACH choice = vote.vote_choices(voteid) %] |
---|
32 | <form action="[% c.uri_for(voteid) %]"> |
---|
33 | [% loop.count %] - [% vote.choice_info(choice).label | html %] |
---|
34 | <input type="hidden" name="delch" value="[% vote.choice_info(choice).key %]"> |
---|
35 | <input type="submit" name="del" value="Effacer"> |
---|
36 | </form> |
---|
37 | <br> |
---|
38 | [% END %] |
---|
39 | <form action="[% c.uri_for(voteid) %]"> |
---|
40 | Ajouter un choix:<br> |
---|
41 | <input type="text" name="addch"> |
---|
42 | <input type="submit"> |
---|
43 | </form> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | </table> |
---|
47 | |
---|
48 | <hr> |
---|
49 | |
---|
50 | <table border="1"> |
---|
51 | <tr> |
---|
52 | <td valign="TOP"> |
---|
53 | [% signing = vote.vote_voting(voteid) %] |
---|
54 | [% FOREACH thisvoting = signing %] |
---|
55 | [% voting = vote.voting_info(thisvoting) %] |
---|
56 | <form action="[% c.uri_for(voteid) %]"> |
---|
57 | <input type="hidden" name="delvoting" value="[% voting.vkey %]"> |
---|
58 | [% voting.id | html %] [% voting.mail | html %] |
---|
59 | <input type="submit" name="delete" value="delete"><br> |
---|
60 | </form> |
---|
61 | [% END %] |
---|
62 | </td> |
---|
63 | <td valign="TOP"> |
---|
64 | <form action="[% c.uri_for(voteid) %]"> |
---|
65 | Login: <input type="text" name="id"><br> |
---|
66 | Mail: <input type="text" name="mail"><br> |
---|
67 | <input type="submit"> |
---|
68 | </form> |
---|
69 | <hr> |
---|
70 | <form method="POST" ENCTYPE="multipart/form-data" action="[% c.uri_for(voteid) %]"> |
---|
71 | <input type="file" name="votinglist"><br> |
---|
72 | <input type="checkbox" name="delete">Effacer la liste des votants<br> |
---|
73 | <input type="submit"> |
---|
74 | </form> |
---|
75 | </td> |
---|
76 | </tr> |
---|
77 | </table> |
---|
78 | </t |
---|