Show
Ignore:
Timestamp:
05/21/08 15:27:00 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/catfaqs/admin_edit.ctp

    r253 r541  
    1 <div> 
    2 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
    3 <?php echo $html->addCrumb('FAQs', '/admin/catfaqs/listing'); ?>  
    4 <?php echo $html->getCrumbs(' / '); ?> 
    5 </div> 
     1<?php  
     2 echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
     3 echo $html->addCrumb('FAQs', '/admin/catfaqs/listing'); ?>  
     4 echo $html->getCrumbs(' / ');  
    65 
    7 <?php  
    8    echo $html->formTag('/admin/catfaqs/edit','post');  
    9    echo $html->hidden('Catfaq/id'); 
     6 echo $form->create('Catfaq', array('onsubmit'=>'return chkData()'));  
     7 echo $form->hidden('Catfaq.id'); 
    108?> 
    119<fieldset> 
    1210  <legend>Edit Item</legend> 
    1311  <?php  
    14     echo $form->labelTag('Catfaq/title', 'Title:' ); 
    15     echo $html->input('Catfaq/title', array("size" => 30, "maxlength" => 90)); 
    16     echo $html->tagErrorMsg('Catfaq/title', 'Title is required.'); 
     12    echo $form->input('Catfaq.title', array("size" => 30, "maxlength" => 90)); 
    1713      
    18      echo $form->labelTag('Catfaq/description', 'Description:' ); 
    19     echo $html->textarea('Catfaq/description', array("cols" => 40, "row" => 20)); 
    20     echo $html->tagErrorMsg('Catfaq/description', 'Description is required.'); 
     14    echo $form->label('Catfaq.description', 'Description:'); 
     15    echo $form->textarea('Catfaq.description', array("cols" => 40, "row" => 20)); 
    2116  ?> 
    2217  <div style="clear:both"></div> 
    2318  <br /> 
    24   <?php echo $html->submit('Save') ?> 
     19  <?php echo $form->end('Save'); ?> 
    2520</fieldset> 
    26 </form>