mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-70562 mod_quiz: "Edit quiz" and "Back to the course" button spacing
This commit is contained in:
parent
c381757f2a
commit
0daf89a0e3
@ -874,11 +874,15 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||
* @return string HTML to output.
|
||||
*/
|
||||
public function no_questions_message($canedit, $editurl) {
|
||||
$output = '';
|
||||
$output .= $this->notification(get_string('noquestions', 'quiz'));
|
||||
$output = html_writer::start_tag('div', array('class' => 'card text-center mb-3'));
|
||||
$output .= html_writer::start_tag('div', array('class' => 'card-body'));
|
||||
|
||||
$output .= $this->notification(get_string('noquestions', 'quiz'), 'warning', false);
|
||||
if ($canedit) {
|
||||
$output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
|
||||
}
|
||||
$output .= html_writer::end_tag('div');
|
||||
$output .= html_writer::end_tag('div');
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user