Skip to content

Commit

Permalink
Merge branch 'MDL-72216-master' of git://github.com/lucaboesch/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Sep 8, 2021
2 parents 8b0ea8d + 7923918 commit d08cdaa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions question/preview.php
Expand Up @@ -255,14 +255,14 @@
// Finish the question form.
echo html_writer::start_tag('div', array('id' => 'previewcontrols', 'class' => 'controls'));
echo html_writer::empty_tag('input', $restartdisabled + array('type' => 'submit',
'name' => 'restart', 'value' => get_string('restart', 'question'), 'class' => 'btn btn-secondary'));
'name' => 'restart', 'value' => get_string('restart', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'save', 'value' => get_string('save', 'question'), 'class' => 'btn btn-secondary',
'name' => 'save', 'value' => get_string('save', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1',
'id' => 'id_save_question_preview'));
echo html_writer::empty_tag('input', $filldisabled + array('type' => 'submit',
'name' => 'fill', 'value' => get_string('fillincorrect', 'question'), 'class' => 'btn btn-secondary'));
'name' => 'fill', 'value' => get_string('fillincorrect', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'finish', 'value' => get_string('submitandfinish', 'question'), 'class' => 'btn btn-secondary',
'name' => 'finish', 'value' => get_string('submitandfinish', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1',
'id' => 'id_finish_question_preview'));
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');
Expand Down
Expand Up @@ -41,7 +41,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');

// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));

closebutton.on('click', function() {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -39,7 +39,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');

// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));

closebutton.on('click', function() {
Expand Down
2 changes: 1 addition & 1 deletion question/yui/src/preview/js/preview.js
Expand Up @@ -39,7 +39,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');

// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));

closebutton.on('click', function() {
Expand Down

0 comments on commit d08cdaa

Please sign in to comment.