mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-70562 mod_quiz: "Edit quiz" and "Back to the course" button spacing
This commit is contained in:
parent
fee3970787
commit
8bd0898ce3
1 changed files with 6 additions and 2 deletions
|
@ -874,11 +874,15 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||||
* @return string HTML to output.
|
* @return string HTML to output.
|
||||||
*/
|
*/
|
||||||
public function no_questions_message($canedit, $editurl) {
|
public function no_questions_message($canedit, $editurl) {
|
||||||
$output = '';
|
$output = html_writer::start_tag('div', array('class' => 'card text-center mb-3'));
|
||||||
$output .= $this->notification(get_string('noquestions', 'quiz'));
|
$output .= html_writer::start_tag('div', array('class' => 'card-body'));
|
||||||
|
|
||||||
|
$output .= $this->notification(get_string('noquestions', 'quiz'), 'warning', false);
|
||||||
if ($canedit) {
|
if ($canedit) {
|
||||||
$output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
|
$output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
|
||||||
}
|
}
|
||||||
|
$output .= html_writer::end_tag('div');
|
||||||
|
$output .= html_writer::end_tag('div');
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue