Fix score size see #7840

1.10.x
Julio Montoya 10 years ago
parent 40d734f776
commit 8e44ea4bbe
  1. 2
      main/exercice/UniqueAnswerImage.php
  2. 6
      main/exercice/matching.class.php
  3. 16
      main/exercice/unique_answer.class.php

@ -55,7 +55,7 @@ class UniqueAnswerImage extends UniqueAnswer
<th>' . get_lang('Answer') . '</th>
' . $commentTitle . '
' . $feedbackTitle . '
<th width="10">' . get_lang('Weighting') . '</th>
<th width="15">' . get_lang('Weighting') . '</th>
</tr>
</thead>
<tbody>';

@ -112,10 +112,10 @@ class Matching extends Question
$html = '<table class="table table-striped table-hover">
<thead>
<tr>
<th width="10">' . get_lang('Number') . '</th>
<th width="85%">' . get_lang('Answer') . '</th>
<th width="5%">' . get_lang('Number') . '</th>
<th width="70%">' . get_lang('Answer') . '</th>
<th width="15%">' . get_lang('MatchesTo') . '</th>
<th width="10">' . get_lang('Weighting') . '</th>
<th width="10%">' . get_lang('Weighting') . '</th>
</tr>
</thead>
<tbody>';

@ -59,21 +59,21 @@ class UniqueAnswer extends Question
if ($obj_ex->selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT) {
//Scenario
$comment_title = '<th>' . get_lang('Comment') . '</th>';
$feedback_title = '<th>' . get_lang('Scenario') . '</th>';
$comment_title = '<th width="20%">' . get_lang('Comment') . '</th>';
$feedback_title = '<th width="20%">' . get_lang('Scenario') . '</th>';
} else {
$comment_title = '<th >' . get_lang('Comment') . '</th>';
$comment_title = '<th width="40%">' . get_lang('Comment') . '</th>';
}
$html = '<table class="table table-striped table-hover">
<thead>
<tr style="text-align: center;">
<th width="10">' . get_lang('Number') . '</th>
<th>' . get_lang('True') . '</th>
<th>' . get_lang('Answer') . '</th>
<th width="5%">' . get_lang('Number') . '</th>
<th width="5%"> ' . get_lang('True') . '</th>
<th width="40%">' . get_lang('Answer') . '</th>
' . $comment_title . '
' . $feedback_title . '
<th width="10">' . get_lang('Weighting') . '</th>
<th width="10%">' . get_lang('Weighting') . '</th>
</tr>
</thead>
<tbody>';
@ -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('style' => 'width: 60px;', 'value' => '0'));
$form->addText('weighting[' . $i . ']', null, null, array('value' => '0'));
$form->addHtml('</tr>');
}

Loading…
Cancel
Save