Changeset 17 for trunk/root


Ignore:
Timestamp:
03/07/09 18:44:50 (15 years ago)
Author:
nanardon
Message:
  • check count of selected items
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/ballot/default.tt

    r15 r17  
    11[% vote = c.model('Vote') %] 
    22 
    3 [% INLCUDE 'includes/poll.tt' %] 
     3[% thisvote = vote.vote_info(voteid) %] 
     4 
     5[% INCLUDE 'includes/poll.tt' %] 
    46 
    57[% IF c.req.param('ballot') %] 
     
    1315[% FOREACH ch = c.req.param('fsbal') %] 
    1416[% ch | html %]<br> 
    15 <input type="hidden" name="sbal" value="[% ch %]"> 
     17<input type="hidden" name="fsbal" value="[% ch %]"> 
    1618[% END %] 
    1719<input type="submit" name="confirm"> 
     
    2022 
    2123[% ELSE %] 
     24 
     25[% IF vote_error %][% vote_error %][% END %] 
    2226 
    2327<form action="[% c.uri_for(voteid) %]"> 
     
    3034[% count = 0 %] 
    3135[% WHILE count < thisvote.free_choice %] 
    32 <input type="text" name="fsbal" value="[% c.req.param('fsbal').count %]"><br> 
     36<input type="text" name="fsbal" value="[% fsbal.$count %]"><br> 
    3337[% count = count + 1 %] 
    3438[% END %] 
Note: See TracChangeset for help on using the changeset viewer.