mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-84775-main' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
777463c8d7
@ -923,12 +923,13 @@ class renderer extends plugin_renderer_base {
|
||||
$attemptbtn = $this->start_attempt_button($viewobj->buttontext,
|
||||
$viewobj->startattempturl, $viewobj->preflightcheckform,
|
||||
$viewobj->popuprequired, $viewobj->popupoptions);
|
||||
$content .= $attemptbtn;
|
||||
$content .= html_writer::div($attemptbtn, 'navitem');
|
||||
}
|
||||
|
||||
if ($viewobj->canedit && !$viewobj->quizhasquestions) {
|
||||
$content .= html_writer::link($viewobj->editurl, get_string('addquestion', 'quiz'),
|
||||
$addquestionbutton = html_writer::link($viewobj->editurl, get_string('addquestion', 'quiz'),
|
||||
['class' => 'btn btn-secondary']);
|
||||
$content .= html_writer::div($addquestionbutton, 'navitem');
|
||||
}
|
||||
|
||||
if ($content) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user