Skip to content

Commit

Permalink
M4.2: StudentQuiz- The position of Navigation buttons #713534
Browse files Browse the repository at this point in the history
and Change state are displaying incorrect compare to M4.1
  • Loading branch information
danghieu1407 authored and timhunt committed Oct 4, 2023
1 parent 7891b64 commit b834d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ public function render_pagination_bar($pagevars, $baseurl, $totalnumber, $page,
'name' => 'changepagesize',
'value' => 1,
]);
$pagingbaroutput .= \html_writer::div($selectionperpage, 'pull-right form-inline pagination m-t-1');
$pagingbaroutput .= \html_writer::div($selectionperpage, 'float-right form-inline pagination m-t-1');
}
$pagingbaroutput .= $this->output->render($pagingbar);
$pagingbaroutput .= html_writer::end_div();
Expand Down Expand Up @@ -1796,7 +1796,7 @@ public function render_navigation_bar($hasprevious, $hasnext, $hasanswered) {
]);
}

$content1 = html_writer::div(html_writer::div($col1content, 'pull-left'), 'col-md-4');
$content1 = html_writer::div(html_writer::div($col1content, 'float-left'), 'col-md-4');

// The abort button can always be shown, except when the question has been answered and it is the last question
// in the list.
Expand All @@ -1821,7 +1821,7 @@ public function render_navigation_bar($hasprevious, $hasnext, $hasanswered) {
'class' => 'btn btn-primary'
]);
}
$content3 = html_writer::div(html_writer::div($col3content, 'pull-right'), 'col-md-4');
$content3 = html_writer::div(html_writer::div($col3content, 'float-right'), 'col-md-4');

return html_writer::div($content1 . $content2 . $content3, 'mod-studentquiz-attempt-nav row');
}
Expand Down

0 comments on commit b834d10

Please sign in to comment.