| 5 | | <?php echo $html->formTag('/admin/quotes/edit/','post'); ?> |
| | 6 | echo $form->create('Quote', array('url' => 'quotes/admin_edit')); |
| | 7 | echo $form->hidden('Quote.id'); |
| | 8 | ?> |
| | 9 | <fieldset> |
| | 10 | <legend>Edit quote</legend> |
| | 11 | <?php |
| | 12 | echo $form->input('Quote.quote', array("size" => 60, "maxlength" => 150)); |
| | 13 | echo $form->error('Quote.quote', 'Title is required.'); |
| | 14 | |
| | 15 | echo $form->input('Quote.author', array("size" => 25, "maxlength" => 70)); |
| | 16 | echo $form->error('Quote.author', 'Author is required.'); |
| 9 | | <fieldset> |
| 10 | | <legend>Edit new</legend> |
| 11 | | <?php |
| 12 | | echo $form->labelTag( 'Quote/quote', 'Quote:' ); |
| 13 | | echo $html->input('Quote/quote', array("size" => 60, "maxlength" => 150)); |
| 14 | | echo $html->tagErrorMsg('Quote/quote', 'Title is required.'); |
| 15 | | |
| 16 | | echo $form->labelTag( 'Quote/quote', 'Author:' ); |
| 17 | | echo $html->input('Quote/author', array("size" => 25, "maxlength" => 70)); |
| 18 | | echo $html->tagErrorMsg('Quote/author', 'Author is required.'); |
| 19 | | ?> |
| 20 | | |
| 21 | | <?php echo $html->submit('Send'); ?> |
| 22 | | </fieldset> |
| 23 | | </form> |
| 24 | | |