Changeset 9 for trunk/root
- Timestamp:
- 03/06/09 05:09:15 (15 years ago)
- Location:
- trunk/root/templates/ballot
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/ballot/default.tt
r8 r9 3 3 [% thisvote = vote.vote_info(voteid) %] 4 4 [% thisvote.label | html %] 5 <hr> 6 7 [% IF c.req.param('ballot') %] 8 Confirmez votre vote: 9 <form action="[% c.uri_for(voteid) %]"> 10 [% FOREACH ch = c.req.param('sbal') %] 11 [% choices.$ch | html %] 12 <input type="hidden" name="sbal" value="[% ch %]"> 13 <br> 14 [% END %] 15 [% FOREACH ch = c.req.param('fsbal') %] 16 [% ch | html %]<br> 17 <input type="hidden" name="sbal" value="[% ch %]"> 18 [% END %] 19 <input type="submit" name="confirm"> 20 <input type="submit" name="Modify" value="Modifier mon vote"> 21 </form> 22 23 [% ELSE %] 5 24 6 25 <form action="[% c.uri_for(voteid) %]"> 7 26 [% FOREACH choice = vote.vote_choices(voteid) %] 8 <input type="checkbox" name="sbal" value="[% choice.key %]">[% choice.label | html %]<br> 27 [% key = choice.key %] 28 <input type="checkbox" name="sbal" value="[% choice.key %]"[% " checked" IF sbal.$key %]> 29 [% choice.label | html %]<br> 9 30 [% END %] 10 31 11 [% count = 1%]12 [% WHILE count < =thisvote.free_choice %]13 <input type="text" name="fsbal" value=" "><br>32 [% count = 0 %] 33 [% WHILE count < thisvote.free_choice %] 34 <input type="text" name="fsbal" value="[% c.req.param('fsbal').count %]"><br> 14 35 [% count = count + 1 %] 15 36 [% END %] 16 37 <input type="submit" name="ballot"> 17 38 </form> 39 40 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.