Show
Ignore:
Timestamp:
07/22/08 17:08:42 (4 months ago)
Author:
aarkerio
Message:

Exmans and vclass

Files:
1 modified

Legend:

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

    r361 r666  
    11<?php  
    2    echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    3    echo $html->addCrumb('Test', '/admin/tests/listing');  
     2   echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     3   echo $html->addCrumb(__('Tests', true), '/admin/tests/listing');  
    44   echo $html->getCrumbs(' / ');  
    55  
    6    echo $form->create('Question', array("onsubmit"=>"return validateNew()"));  
     6   echo $form->create('Question', array("onsubmit"=>"return chkForm()"));  
    77   echo $form->hidden('Question.id'); 
    88   echo $form->hidden('Question.test_id', array('value'=>$this->data['Question']['test_id'])); 
    99?> 
    1010<fieldset> 
    11 <legend>Edit question</legend> 
     11<legend><?php __('Edit question'); ?></legend> 
    1212<?php 
    13  echo $html->div('required',$form->input('Question.question', array("size" => 40, "maxlength" => 120)));  
     13 echo $html->div('required',$form->input('Question.question', array('size'=>40, 'maxlength'=> 120, 'label'=>__('Question', true))));  
    1414   
    15  echo $html->div('required',$form->input('Question.hint', array("size" => 40, "maxlength" => 120)));  
     15 echo $html->div('required',$form->input('Question.hint', array('size' => 40, 'maxlength'=> 120, 'label'=>__('Hint', true))));  
    1616     
    17  $tmp  = $form->label('Question.explanation', 'Explanation:');  
     17 $tmp  = $form->label('Question.explanation', __('Explanation', true));  
    1818 $tmp .= $form->textarea('Question.explanation', array("cols" => 50, "rows" => 5));  
    1919 
    2020 echo $html->div('required',$tmp); 
    2121  
    22  $t  = $form->label('Question.worth', 'Worth:'); 
    23  $t .= $form->select('Question.worth', array(1,2,3,4,5,6,7,8,9,10), null, null, false, false); 
     22 $t  = $form->label('Question.worth', __('Points', true)); 
     23 $t .= $form->select('Question.worth', array(1=>1,2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10), null, null, false, false); 
    2424 echo $html->div('required',$t); 
     25 
     26 echo $form->end(__('Save', true)); 
    2527?> 
    2628</fieldset> 
    27 <?php echo $form->end('Save'); ?>  
    2829 
     30