Changeset 221 for trunk/root/templates
- Timestamp:
- 04/20/09 03:24:26 (15 years ago)
- Location:
- trunk/root/templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/admin/ballot.tt
r217 r221 20 20 <td>Nombre de choix libres:</td> 21 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> 22 27 </tr> 23 28 -
trunk/root/templates/ballot/default.tt
r206 r221 24 24 <input type="hidden" name="fsbal" value="[% ch %]"> 25 25 [% END %] 26 [% IF ! c.req.param('fsbal').size && ! c.req.param('sbal').size %] 26 [% FOREACH ch = c.req.param('esbal') %] 27 [% ch | html %]<br> 28 <input type="hidden" name="esbal" value="[% ch %]"> 29 [% END %] 30 [% IF ! c.req.param('fsbal').size && ! c.req.param('sbal').size && ! c.req.param('esbal').size %] 27 31 <i>Vote blanc</i><br> 28 32 [% END %] -
trunk/root/templates/includes/ballot_form.tt
r219 r221 3 3 <!-- $Id$ --> 4 4 [% FOREACH key = poll.choices() %] 5 [% "<p>Candidats:</p>" IF loop.first %] 5 6 [% choice = poll.choice(key) %] 6 7 <input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]> … … 10 11 [% count = 0 %] 11 12 [% WHILE count < (poll.info('elected_choice') || 0) %] 13 [% "<p>Depuis la liste électorale</p>" IF count == 0 %] 12 14 [% FOREACH vkey = poll.voting_keys %] 13 15 [% voting = poll.voting(vkey) %] 14 16 [% '<select name="esbal"><option value=""></option>' IF loop.first %] 15 <option value="[% voting.info.id || voting.info.mail | html %]"> 16 [% voting.info.id || voting.info.mail | html %] 17 <option value="[% voting.info.label || voting.info.mail | html %]" 18 [% " selected" IF esbal.$count == (voting.info.label || voting.info.mail) %]> 19 [% voting.info.label || voting.info.mail | html %] 17 20 </option> 18 21 [% '</select>' IF loop.last %]
Note: See TracChangeset
for help on using the changeset viewer.