| 1 | <?php |
|---|
| 2 | echo $javascript->link('myfunctions'); |
|---|
| 3 | echo $html->addCrumb('Control Tools', '/admin/entries/start'); |
|---|
| 4 | echo $html->getCrumbs(' / '); |
|---|
| 5 | |
|---|
| 6 | echo $html->div('title_section', __('Add new forum', true)); |
|---|
| 7 | |
|---|
| 8 | if ( $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')); |
|---|
| 10 | else: |
|---|
| 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 | |
|---|
| 29 | echo '</fieldset>'; |
|---|
| 30 | endif; |
|---|
| 31 | ?> |
|---|