Show
Ignore:
Timestamp:
03/25/08 01:03:27 (8 months ago)
Author:
aarkerio
Message:

eCourses fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/ecourses/admin_edit.ctp

    r340 r342  
    11<?php  
    2 echo $form->create('Ecourse',array("onsubmit"=>"return chkForm();"));  
    3 echo $form->hidden('Ecourse.id'); 
     2 echo $javascript->link('fckeditor/fckeditor'); 
     3 echo $form->create('Ecourse',array("onsubmit"=>"return chkForm();"));  
     4 echo $form->hidden('Ecourse.id'); 
    45?> 
    56<fieldset> 
    6   <legend>New Course</legend> 
    7 <p>By default, your course is accessible to everybody. If you want some c0onfidentiality, the simplest way is to open registration during one week, ask the students to register themselves, then close registration and check for possible intruders in the user list.</p> 
     7  <legend>Edit Course</legend> 
    88  <?php  
    9     echo $form->input('Ecourse.title', array("size" => 30, "maxlength" => 90)) . ' e.g. History of Literature'; 
    10     echo $form->error('Ecourse.title', 'A FAQ title is required.'); 
     9    echo $form->input('Ecourse.title', array("size" => 30, "maxlength" => 90, 'title'=>' e.g. History of Literature')) ; 
    1110     
     11    echo '<br />'; 
    1212    echo $form->label('Ecourse.description', 'Description:'); 
    1313    echo $form->textarea('Ecourse.description', array("cols" => 40, "rows" =>4)); 
     14    echo $fck->load('EcourseDescription', 'Default'); 
    1415     
     16    echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12, 'title'=>'max. 12 characters, ie.ROM2121')); 
    1517     
    16     echo $form->input('Ecourse.code', array("size" => 12, "maxlenght" => 12))  . ' max. 12 characters, ie.ROM2121'; 
    17     echo $form->error('Ecourse.code', 'A category description is required.'); 
    18   ?> 
    19   <br /><br /> 
    20 <?php 
    2118    echo $form->label('Ecourse.subject_id', 'Subject:'); 
    2219    echo $form->select('Ecourse.subject_id', $subjects, null, null, null, false); 
    23  
     20     
    2421    echo $form->label('Ecourse.lang_id', 'Lang:'); 
    2522    echo $form->select('Ecourse.lang_id', $langs, null, null, null, false); 
    2623?> 
    2724  <div style="clear:both"></div> 
    28   <?php echo $form->label('Ecourse.status', 'Activate:' );?><br /> 
    29   <?php echo $form->checkbox('Ecourse.status', null, array("value"=>1)); ?><br /> 
    30   <br /><br /> 
    31  
     25  <?php  
     26     echo $form->label('Ecourse.status', 'Enabled:' ); 
     27     echo $form->checkbox('Ecourse.status', array("value"=>1, 'title'=>'Enabled course'));  
     28     ?> 
    3229  <div style="clear:both"></div> 
    3330  <br /> 
    34   <?php echo $form->submit('Save') ?> 
     31  <?php echo $form->submit('Save'); ?> 
    3532</fieldset> 
    3633</form>