Update UI see BT#12898

pull/2487/head
jmontoyaa 8 years ago
parent efeab7b75b
commit 77e0218f04
  1. 5
      app/Resources/public/css/base.css
  2. 4
      main/exercise/exercise_show.php
  3. 6
      main/inc/lib/exercise.lib.php

@ -6722,6 +6722,11 @@ input.form-control[type="color"] {
clear: left;
}
.btn-orange {
background-color: #EF7710;
border: none;
}
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

@ -793,7 +793,7 @@ foreach ($questionList as $questionId) {
$formMark->display();*/
echo '<form name="marksform_'.$questionId.'" method="post" action="">';
echo get_lang("AssignMarks");
echo "&nbsp;<select class='selectpicker' name='marks' id='marks'>";
echo "&nbsp;<select name='marks' id='marks'>";
$model = ExerciseLib::getCourseScoreModel();
if (empty($model)) {
for ($i = 0; $i <= $questionWeighting; $i++) {
@ -803,7 +803,7 @@ foreach ($questionList as $questionId) {
foreach ($model['score_list'] as $item) {
$i = api_number_format($item['score_to_qualify'] / 100 * $questionWeighting, 2);
$model = ExerciseLib::getModelStyle($item, $i);
echo '<option value="'.$i.'" '.(($i == $questionScore) ? "selected='selected'" : '').'>'.$model.'</option>';
echo '<option class = "'.$item['css_class'].'" value="'.$i.'" '.(($i == $questionScore) ? "selected='selected'" : '').'>'.$model.'</option>';
}
}
echo '</select>';

@ -2348,9 +2348,9 @@ HOTSPOT;
*/
public static function getModelStyle($model, $percentage)
{
$modelWithStyle = get_lang($model['name']);
$modelWithStyle .= ' - <span class="'.$model['css_class'].'">'.$model['css_class'].' </span> - ';
$modelWithStyle .= $percentage;
//$modelWithStyle = get_lang($model['name']);
$modelWithStyle = '<span class="'.$model['css_class'].'"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
//$modelWithStyle .= $percentage;
return $modelWithStyle;
}

Loading…
Cancel
Save