root/trunk/app/views/forums/admin_add.ctp

Revision 838, 1.1 kB (checked in by aarkerio, 5 weeks ago)

Models extended

Line 
1<?php 
2echo $javascript->link('myfunctions');
3echo $html->addCrumb('Control Tools', '/admin/entries/start');
4echo $html->getCrumbs(' / ');
5
6echo $html->div('title_section', __('Add new forum', true));
7
8if ( $vclassrooms == null):
9    echo $html->para(null, $html->link(__('You need to have at last one vClassroom enabled to add new forums', true), '/admin/ecourses/listing'));
10else:
11  echo $form->create('Forum');
12  echo $form->hidden('Forum.catforum_id', array('value'=>$catforum_id));
13?>
14<fieldset>
15   <legend><?php __('New forum'); ?></legend>
16<?php
17  echo $form->label('Forum.vclassroom_id', 'vClassroom');
18  echo $form->select('Forum.vclassroom_id', $vclassrooms, null, array(), false);
19
20  echo $form->input('Forum.title', array('size' => 40, 'maxlength' => 60));
21 
22  echo $form->label('Forum.description', __('Description', true));
23  echo $form->textarea('Forum.description', array('rows'=>10,'cols'=>50));
24
25  echo $form->label('Forum.status', __('Published', true)) . $form->checkbox('Forum.status');
26
27  echo $form->end(__('Save', true));
28
29echo '</fieldset>';
30endif;
31?>
Note: See TracBrowser for help on using the browser.