mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-61040 mod_choice: Save my choice button needs some space
This commit is contained in:
parent
95b7be7f05
commit
07a46481fe
@ -93,7 +93,7 @@ class mod_choice_renderer extends plugin_renderer_base {
|
||||
if (!empty($options['allowupdate']) && ($options['allowupdate'])) {
|
||||
$url = new moodle_url('view.php',
|
||||
array('id' => $coursemoduleid, 'action' => 'delchoice', 'sesskey' => sesskey()));
|
||||
$html .= html_writer::link($url, get_string('removemychoice', 'choice'));
|
||||
$html .= html_writer::link($url, get_string('removemychoice', 'choice'), array('class' => 'm-l-1'));
|
||||
}
|
||||
} else {
|
||||
$html .= html_writer::tag('label', get_string('havetologin', 'choice'));
|
||||
|
@ -203,7 +203,8 @@ if (!$choiceformshown) {
|
||||
if (choice_can_view_results($choice, $current, $choiceopen)) {
|
||||
$results = prepare_choice_show_results($choice, $course, $cm, $allresponses);
|
||||
$renderer = $PAGE->get_renderer('mod_choice');
|
||||
echo $renderer->display_result($results);
|
||||
$resultstable = $renderer->display_result($results);
|
||||
echo $OUTPUT->box($resultstable);
|
||||
|
||||
} else if (!$choiceformshown) {
|
||||
echo $OUTPUT->box(get_string('noresultsviewable', 'choice'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user