Changeset 666 for trunk/app/views/questions/admin_edit.ctp
- Timestamp:
- 07/22/08 17:08:42 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/questions/admin_edit.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/questions/admin_edit.ctp
r361 r666 1 1 <?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'); 4 4 echo $html->getCrumbs(' / '); 5 5 6 echo $form->create('Question', array("onsubmit"=>"return validateNew()"));6 echo $form->create('Question', array("onsubmit"=>"return chkForm()")); 7 7 echo $form->hidden('Question.id'); 8 8 echo $form->hidden('Question.test_id', array('value'=>$this->data['Question']['test_id'])); 9 9 ?> 10 10 <fieldset> 11 <legend> Edit question</legend>11 <legend><?php __('Edit question'); ?></legend> 12 12 <?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)))); 14 14 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)))); 16 16 17 $tmp = $form->label('Question.explanation', 'Explanation:');17 $tmp = $form->label('Question.explanation', __('Explanation', true)); 18 18 $tmp .= $form->textarea('Question.explanation', array("cols" => 50, "rows" => 5)); 19 19 20 20 echo $html->div('required',$tmp); 21 21 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); 24 24 echo $html->div('required',$t); 25 26 echo $form->end(__('Save', true)); 25 27 ?> 26 28 </fieldset> 27 <?php echo $form->end('Save'); ?>28 29 30
