Show
Ignore:
Timestamp:
02/22/08 22:39:23 (9 months ago)
Author:
aarkerio
Message:

Update karamelo to 1.2 cake version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/elements/poll.ctp

    r240 r274  
    4242  else // the user has voted, just print the poll result 
    4343  { 
    44        echo $html->formTag('#','post', array("onsubmit"=>"return false;")); 
     44    echo $ajax->form(); 
    4545     
    4646    $array   = array(); 
     
    4848    echo "<p><b>" . $Element["Poll"]['Poll']['question'] ."</b></p>"; 
    4949     
    50     echo $html->hiddenTag('Pollrow/poll_id', $Element["Poll"]['Poll']['id']);  // Poll_id 
     50    echo $form->hidden('Pollrow.poll_id', $Element["Poll"]['Poll']['id']);  // Poll_id 
    5151     
    5252    foreach ($Element["Poll"]['Pollrow'] as $key=>$val) 
     
    5656     
    5757    echo '<span style="font-size:7pt">'; 
    58         echo $html->radio('Pollrow/id', $array, '<br />');  //print the answers 
     58        echo $form->radio('Pollrow.id', $array, array('separator'=>'<br />'));  //print the answers 
    5959    echo '<br />'; 
    6060