Show
Ignore:
Timestamp:
04/16/08 17:24:40 (9 months ago)
Author:
aarkerio
Message:

Updates on polls

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/polls/admin_add.ctp

    r268 r407  
    11 
    2 <?php echo $html->formTag('/admin/polls/add/','post'); ?> 
     2<?php echo $form->create('Poll'); ?> 
    33<fieldset> 
    44<legend>New Poll</legend> 
    5   <?php echo $form->labelTag('Poll/question', 'Question:') . "<br />"; ?> 
    6   <?php echo $html->input('Poll/question', array("size" => 60, "maxlength"=>130)); ?> 
    7   <?php echo $html->tagErrorMsg('Poll/question', 'A question is required.'); ?> 
     5  <?php  
     6    echo $form->input('Poll.question', array("size" => 60, "maxlength"=>100)); 
     7  ?> 
     8   
    89  <div style="margin:15px auto 15px auto;border:1px dotted gray;padding-left:40px;width:80%;"> 
    910 
    1011<?php  
    1112for ($i=1;$i<10;$i++)  
    12 { 
    13    echo $form->labelTag('Row/answer'.$i, 'Answer ' . $i . ':') . "<br />";  
    14    echo $html->input('Row/answer'.$i, array("size" => 50, "maxlenght"=>100));   
     13{  
     14  echo $form->input('Row.answer'.$i, array('size' => 50, 'maxlenght'=>100));   
    1515} 
    1616?> 
     
    1818 
    1919<?php  
    20   echo $form->labelTag('Poll/status', 'Published:') . "<br />";  
    21   echo $html->checkbox('Poll/status');  
     20  echo $form->label('Poll.status', 'Published:') . "<br />";  
     21  echo $form->checkbox('Poll.status', array('value'=>1));  
    2222?> 
    2323 
    24 <div style="clear:both"></div> 
    25 <?php echo $html->submit('Add'); ?> 
    26 </fieldset> 
    27 </form> 
     24<div style="clear:both"></div></fieldset> 
    2825 
     26<?php echo $form->end('Save'); ?> 
     27 
     28