| 1 | <?php |
|---|
| 2 | echo $html->addCrumb('Control Panel', '/admin/entries/start'); |
|---|
| 3 | echo $html->addCrumb(__('Tests', true), '/admin/tests/listing'); |
|---|
| 4 | echo $html->getCrumbs(' / '); |
|---|
| 5 | |
|---|
| 6 | echo $form->create('Question', array("onsubmit"=>"return chkForm()")); |
|---|
| 7 | echo $form->hidden('Question.id'); |
|---|
| 8 | echo $form->hidden('Question.test_id', array('value'=>$this->data['Question']['test_id'])); |
|---|
| 9 | ?> |
|---|
| 10 | <fieldset> |
|---|
| 11 | <legend><?php __('Edit question'); ?></legend> |
|---|
| 12 | <?php |
|---|
| 13 | echo $html->div('required',$form->input('Question.question', array('size'=>40, 'maxlength'=> 120, 'label'=>__('Question', true)))); |
|---|
| 14 | |
|---|
| 15 | echo $html->div('required',$form->input('Question.hint', array('size' => 40, 'maxlength'=> 120, 'label'=>__('Hint', true)))); |
|---|
| 16 | |
|---|
| 17 | $tmp = $form->label('Question.explanation', __('Explanation', true)); |
|---|
| 18 | $tmp .= $form->textarea('Question.explanation', array("cols" => 50, "rows" => 5)); |
|---|
| 19 | |
|---|
| 20 | echo $html->div('required',$tmp); |
|---|
| 21 | |
|---|
| 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, array(), false); |
|---|
| 24 | echo $html->div('required',$t); |
|---|
| 25 | |
|---|
| 26 | echo $form->end(__('Save', true)); |
|---|
| 27 | ?> |
|---|
| 28 | </fieldset> |
|---|
| 29 | |
|---|