Changeset 395 for trunk/app/views/forums/admin_add.ctp
- Timestamp:
- 04/14/08 10:20:01 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/forums/admin_add.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/forums/admin_add.ctp
r393 r395 6 6 echo $html->div('title_section', 'Add New Forum'); 7 7 8 if ( $vclassrooms == null) 9 { 8 if ( $vclassrooms == null): 10 9 echo $html->para(null, $html->link('You need to have at last one classroom enabled to add new forums', '/admin/ecourses/listing')); 11 } 12 else 13 { 10 else: 11 14 12 echo $form->create('Forum'); 15 13 echo $form->hidden('Forum.catforum_id', array('value'=>$catforum_id)); … … 18 16 <legend><?php __('New Forum'); ?></legend> 19 17 <?php 20 echo $form->label('Forum.vclassroom_id', 'Class:');18 echo $form->label('Forum.vclassroom_id', 'Class:'); 21 19 echo $form->select('Forum.vclassroom_id', $vclassrooms, null, null, false); 22 20 echo $form->input('Forum.title', array("size" => 40, "maxlength" => 60)); 23 21 echo $form->error('Forum.title', 'A forum title is required.'); 22 23 echo $html->div('required', $form->label('Forum.description','Description:').$form->textarea('Forum.description', array('rows'=>10,'cols'=>50))); 24 25 echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); 26 27 echo '</fieldset>'; 28 29 echo $form->end('Save'); 30 31 endif; 24 32 ?> 25 <p>26 <?php27 echo $form->label('Forum.description', 'Description:' ) . '<br />';28 echo $form->textarea('Forum.description', array("rows" => 10, "cols" => 50));29 echo $form->error('Forum.description', 'A phorum description is required.');30 ?>31 </p>32 <br />33 <?php echo $form->label('Forum.status', 'Activate forum:') . $form->checkbox('Forum.status', array("value"=>1)); ?><br />34 <p><br /></fieldset>35 <?php echo $form->end('Save');36 }37 ?></p>
