Use Bootstrap class on Exercise overview - refs BT#9901 #TMI

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 839e1bbc6c
commit c2fe4f9591
  1. 14
      main/exercice/overview.php

@ -211,7 +211,7 @@ if (!empty($attempts)) {
$i--;
}
$table = new HTML_Table(array('class' => 'data_table'));
$table = new HTML_Table(array('class' => 'table table-striped table-hover'));
//Hiding score and answer
switch ($objExercise->results_disabled) {
@ -241,11 +241,7 @@ if (!empty($attempts)) {
foreach ($my_attempt_array as $data) {
$column = 0;
$table->setCellContents($row, $column, $data);
$class = 'class="row_odd"';
if($row % 2) {
$class = 'class="row_even"';
}
$table->setRowAttributes($row, $class, true);
$table->setRowAttributes($row, null, true);
$column++;
$row++;
}
@ -282,7 +278,11 @@ if (!empty($exercise_url_button)) {
);
}
$html .= $table_content;
$html .= Display::tag(
'div',
$table_content,
['class' => 'table-responsive']
);
$html.= '</div>';
echo $html;

Loading…
Cancel
Save