Changeset 217 for trunk/root
- Timestamp:
- 04/18/09 04:57:22 (15 years ago)
- Location:
- trunk/root
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/latex/poll_report.tt
r214 r217 8 8 \section{Description du vote} 9 9 10 [%- poll.info .description-%]10 [%- poll.info('description') -%] 11 11 12 12 13 [% poll.info .choice_count%] choix étaient à retenir.13 [% poll.info('choice_count') %] choix étaient à retenir. 14 14 15 15 Etait candidats: … … 49 49 [%- IF poll.ballot_count_nonull -%] 50 50 [%- FOREACH res = poll.results -%] 51 [%- IF res.count != loop.prev.count && loop.count > 0 -%]52 [%- mycount = loop.count -%]53 [%- END -%]54 51 55 [% - IF loop.count <= poll.info.choice_count -%]56 [% - IF res.count >= poll.absolute_majority -%]57 [%- comment = ' majorité absolue' -%]52 [% IF res.elected %] 53 [% IF res.abs_maj %] 54 [%- comment = 'Elu, majorité absolue' -%] 58 55 [%- ELSE -%] 59 56 [%- comment = 'Elu' -%] … … 70 67 \hline 71 68 [% END %] 72 [% mycount%]& [% res.value %]& [% res.count %]& [% res.count * 100 / poll.ballot_count_nonull | format('%.2f') %]& [% comment %]\\69 [% res.order %]& [% res.value %]& [% res.count %]& [% res.count * 100 / poll.ballot_count_nonull | format('%.2f') %]& [% comment %]\\ 73 70 \hline 74 71 -
trunk/root/templates/admin/ballot.tt
r207 r217 4 4 [% poll = c.model('Vote').poll(voteid) %] 5 5 6 <div style="float: left; width: 35%" class="box"> 7 <form action="[% c.uri_for(voteid, 'ballot') %]"> 8 Nombre de choix possible: 9 <input type="text" name="choice_count" value="[% c.req.param('choice_count') || poll.info('choice_count') | html %]"> 10 <br> 11 Nombre de choix libres: 12 <input type="text" name="free_choice" value="[% c.req.param('free_choice') || poll.info('free_choice') || 0 | html %]"> 13 <br> 6 <div style="float: left; width: 55%" class="box"> 7 <form action="[% c.uri_for(voteid, '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 </table> 14 25 <input type="submit" name="pollparam" value="Enregistrer"> 15 26 </form> -
trunk/root/templates/admin/includes/poll_settings.tt
r206 r217 36 36 </form> 37 37 </div> 38 39 <!-- Crypt settings --> 38 40 <div class="box" style="float:right; width: 35%"> 39 41 [% IF poll.is_crypted %] -
trunk/root/templates/includes/poll_results.tt
r214 r217 39 39 [% END %] 40 40 41 [% IF res.count != loop.prev.count && loop.count > 0 %] 42 [% # If equality, we keep same color, even we are over resullts %] 43 [% mycount = loop.count %] 44 [% IF loop.count <= poll.info('choice_count') %] 45 [% IF res.count >= poll.absolute_majority %] 41 [% IF res.elected %] 42 [% IF res.abs_maj %] 46 43 [% class = 'majabs' %] 47 44 [% ELSE %] … … 51 48 [% class = 'notselected' %] 52 49 [% END %] 53 [% END %]54 50 <tr class="[% class %]"> 55 <td>[% mycount%]</td>51 <td>[% res.order %]</td> 56 52 <td>[% loop.count %]</td> 57 53 <td>[% res.value | html %]</td>
Note: See TracChangeset
for help on using the changeset viewer.