| 6 | | echo $form->create('CommentsLesson', array('onsubmit'=>'return chkForm()', 'action'=>'add')); |
| 7 | | echo $form->hidden('CommentsLesson.redirect_to', array('value'=>'/lessons/view/'.$blog['User']['username'].'/'.$data['Lesson']['id'])); |
| 8 | | echo $form->hidden('CommentsLesson.lesson_id', array('value'=>$data['Lesson']['id'])); |
| | 7 | echo $form->create('Annotation', array('onsubmit'=>'return chkForm()', 'action'=>'add')); |
| | 8 | echo $form->hidden('Annotation.redirect_to', array('value'=>'/lessons/view/'.$blog['User']['username'].'/'.$data['Lesson']['id'])); |
| | 9 | echo $form->hidden('Annotation.lesson_id', array('value'=>$data['Lesson']['id'])); |
| 17 | | echo $form->label('CommentsLesson.comment', 'Comment'); |
| 18 | | echo $form->textarea('CommentsLesson.comment', array('rows' => 10, 'cols' => 50)); |
| 19 | | echo $form->error('CommentsLesson.comment', 'A comment is required.'); |
| | 18 | echo $form->label('Annotation.comment', 'Comment'); |
| | 19 | echo $form->textarea('Annotation.comment', array('rows' => 10, 'cols' => 50)); |
| | 20 | echo $form->error('Annotation.comment', 'A comment is required.'); |