|
|
|
@ -190,9 +190,9 @@ class UniqueAnswerNoOption extends Question |
|
|
|
|
$answer_number->freeze(); |
|
|
|
|
|
|
|
|
|
$form->addElement('radio', 'correct', null, null, $i, 'class="checkbox" style="margin-left: 0em;"'); |
|
|
|
|
$form->addElement('html_editor', 'answer['.$i.']', null, [], $editor_config); |
|
|
|
|
$form->addHtmlEditor("answer[$i]", '', false, false, $editor_config); |
|
|
|
|
|
|
|
|
|
$form->addElement('html_editor', 'comment['.$i.']', null, [], $editor_config); |
|
|
|
|
$form->addHtmlEditor("comment[$i]", '', false, false, $editor_config); |
|
|
|
|
$form->addElement('text', 'weighting['.$i.']', null, ['style' => 'width: 60px;', 'value' => '0']); |
|
|
|
|
$form->addElement('html', '</tr>'); |
|
|
|
|
$i++; |
|
|
|
@ -240,10 +240,10 @@ class UniqueAnswerNoOption extends Question |
|
|
|
|
|
|
|
|
|
$form->addElement('hidden', 'position['.$i.']', '666'); |
|
|
|
|
$form->addElement('radio', 'correct', null, null, $i, ['class' => 'checkbox', 'disabled' => true]); |
|
|
|
|
$form->addElement('html_editor', 'answer['.$i.']', null, [], $editor_config); |
|
|
|
|
$form->addHtmlEditor("answer[$i]", '', false, false, $editor_config); |
|
|
|
|
|
|
|
|
|
$form->addRule('answer['.$i.']', get_lang('ThisFieldIsRequired'), 'required'); |
|
|
|
|
$form->addElement('html_editor', 'comment['.$i.']', null, [], $editor_config); |
|
|
|
|
$form->addHtmlEditor("comment[$i]", '', false, false, $editor_config); |
|
|
|
|
$form->addElement('text', "weighting[$i]", null)->freeze(); |
|
|
|
|
|
|
|
|
|
$form->addHTml('</tr>'); |
|
|
|
|