Changeset 717 for trunk/app/views

Show
Ignore:
Timestamp:
08/10/08 23:54:52 (4 months ago)
Author:
aarkerio
Message:

Quick bugs

Location:
trunk/app/views/lessons
Files:
2 modified

Legend:

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

    r625 r717  
    1313<legend><?php __('New Lesson'); ?></legend> 
    1414<table> 
    15 <tr><td> 
    16 <?php 
    17      echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true))); 
    18      echo $form->error('Lesson.title', 'Title is required.');  
    19 ?> 
    20   </td> 
    21   <td> 
     15<tr><td><?php echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true))); ?></td> 
     16<td> 
    2217  <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> 
    2318</td> 
     
    3429      echo $form->textarea('Lesson.body', array("cols"=>80, "rows"=>20)); 
    3530      echo $fck->load('LessonBody', 'Karamelo', 800, 600); 
    36       echo $form->error('Lesson.body', 'Body is required.');  
     31      echo $form->error('Lesson.body');  
    3732  ?> 
    3833  </td></tr> 
  • trunk/app/views/lessons/admin_edit.ctp

    r698 r717  
    1414<table> 
    1515<tr><td> 
    16   <?php  echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true)));  ?> 
    17   </td> 
    18   <td> 
    19   <?php echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images', true))), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> 
     16  <?php echo $form->input('Lesson.title', array('size' => 50, 'maxlength' => 120, 'label'=>__('Title', true)));  ?> 
     17  </td> <td> 
     18  <?php echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images', true))), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false); ?> 
    2019</td> 
    2120<td> 
     
    2928<td colspan="3"> 
    3029 <?php  
    31       echo $form->textarea('Lesson.body', array('cols'=>80, 'rows'=>20)); 
    32       echo $fck->load('LessonBody', 'Karamelo', 800, 600); 
     30    echo $form->textarea('Lesson.body', array('cols'=>80, 'rows'=>20)); 
     31    echo $fck->load('LessonBody', 'Karamelo', 800, 600); 
     32    echo $form->error('Lesson.body'); 
    3333  ?> 
    3434  </td></tr>