Show
Ignore:
Timestamp:
07/01/08 19:06:58 (5 months ago)
Author:
aarkerio
Message:

Little fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/vclassrooms/admin_add.ctp

    r591 r617  
    44 echo $javascript->link('fckeditor/fckeditor'); 
    55 
    6  echo $html->addCrumb('Control Tools', '/admin/entries/start');   
     6 echo $html->addCrumb('Control Panel', '/admin/entries/start');   
    77 echo $html->addCrumb('vGroups', '/admin/ecourses/vclassrooms/'.$this->data['Ecourse']['id']);  
    88 echo $html->getCrumbs(' / ');  
     
    1414  <legend>New Group for e-Course: <?php echo $this->data['Ecourse']['title']; ?></legend>   
    1515  <?php   
    16     echo $form->input('Vclassroom.name', array("size" => 40, "maxlength" => 60));  
     16    echo $form->input('Vclassroom.name', array('size' => 40, 'maxlength' => 60));  
    1717     
    1818    echo $form->label('Vclassroom.status', 'Enabled:');   
    19     echo $form->checkbox('Vclassroom.status', array("value"=>1)); 
     19    echo $form->checkbox('Vclassroom.status', array('value'=>1)); 
    2020  
    2121 
    22     echo $form->input('Vclassroom.secret', array("size" => 7, "maxlength" => 6)); 
     22    echo $form->input('Vclassroom.secret', array('size' => 7, 'maxlength' => 6)); 
    2323    echo $form->end('Save');  
    2424?> 
     
    5454   } 
    5555  
    56    if (access.checked == true) 
     56   
     57   if (secret.value.length < 5) 
    5758   { 
    58       if (secret.value.length < 5) 
    59       { 
    60         alert('You must type a secret code larger than 5 characters'); 
    61         secret.focus(); 
    62         return false; 
    63       } 
     59      alert('You must type a secret code larger than 5 characters'); 
     60      secret.focus(); 
     61      return false; 
    6462   } 
     63   
    6564   return true; 
    6665 }