Increase input with on creation of exercise page - refs #7834

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent f90acdf165
commit 93400bc70c
  1. 2
      main/exercice/Draggable.php
  2. 2
      main/exercice/MatchingDraggable.php
  3. 10
      main/exercice/exercise.class.php
  4. 2
      main/exercice/multiple_answer.class.php
  5. 2
      main/exercice/unique_answer.class.php
  6. 4
      main/exercice/unique_answer_no_option.class.php

@ -128,7 +128,7 @@ class Draggable extends Question
$form->addHtml('<tr>');
$form->addText("answer[$i]", null);
$form->addSelect("matches[$i]", null, $matches);
$form->addText("weighting[$i]", null, true, ['value' => 10]);
$form->addText("weighting[$i]", null, true, ['value' => 10, 'style' => 'width: 60px;']);
$form->addHtml('</tr>');
}

@ -148,7 +148,7 @@ class MatchingDraggable extends Question
$form->addText("answer[$i]", null);
$form->addSelect("matches[$i]", null, $matches);
$form->addText("weighting[$i]", null, true, ['value' => 10]);
$form->addText("weighting[$i]", null, true, ['style' => 'width: 60px;', 'value' => 10]);
$form->addHtml('</tr>');
}

@ -1221,7 +1221,15 @@ class Exercise
} else {
$form->addElement('html','<div id="timercontrol" style="display:none;">');
}
$form->addElement('text', 'enabletimercontroltotalminutes',get_lang('ExerciseTotalDurationInMinutes'),array('style' => 'width : 35px','id' => 'enabletimercontroltotalminutes'));
$form->addText(
'enabletimercontroltotalminutes',
get_lang('ExerciseTotalDurationInMinutes'),
false,
[
'id' => 'enabletimercontroltotalminutes',
'cols-size' => [2, 2, 8]
]
);
$form->addElement('html','</div>');
$form->addElement('text', 'pass_percentage', array(get_lang('PassPercentage'), null, '%'), array('id' => 'pass_percentage'));

@ -132,7 +132,7 @@ class MultipleAnswer extends Question
$form->addHtmlEditor("comment[$i]", null, null, true, $editorConfig);
$form->addElement('text', 'weighting[' . $i . ']', null, array('class' => "col-md-1", 'value' => '0'));
$form->addElement('text', 'weighting[' . $i . ']', null, array('style' => "width: 60px;", 'value' => '0'));
$form->addHtml('</tr>');
}

@ -252,7 +252,7 @@ class UniqueAnswer extends Question
} else {
$form->addHtmlEditor('comment[' . $i . ']', null, null, false, $editor_config);
}
$form->addText('weighting[' . $i . ']', null, null, array('class' => "col-md-1", 'value' => '0'));
$form->addText('weighting[' . $i . ']', null, null, array('style' => 'width: 60px;', 'value' => '0'));
$form->addHtml('</tr>');
}

@ -195,7 +195,7 @@ class UniqueAnswerNoOption extends Question
$form->addElement('html_editor', 'answer[' . $i . ']', null, array(), $editor_config);
$form->addElement('html_editor', 'comment[' . $i . ']', null, array(), $editor_config);
$form->addElement('text', 'weighting[' . $i . ']', null, array('class' => "span1", 'value' => '0'));
$form->addElement('text', 'weighting[' . $i . ']', null, array('style' => 'width: 60px;', 'value' => '0'));
$form->addElement('html', '</tr>');
$i++;
}
@ -248,7 +248,7 @@ class UniqueAnswerNoOption extends Question
//$form->addElement('select', 'destination'.$i, get_lang('SelectQuestion').' : ',$select_question,'multiple');
$form->addText("weighting[$i]", null, false, ['value' => 0, 'readonly' => 'readonly']);
$form->addText("weighting[$i]", null, false, ['style' => 'width: 60px;', 'value' => 0, 'readonly' => 'readonly']);
$form->addHTml('</tr>');
$form->addHtml('</tbody></table>');

Loading…
Cancel
Save