Skip to content

Commit

Permalink
MDL-56826 question: Add bootstrap styles to question preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Nov 17, 2016
1 parent 820a435 commit 009c57d
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
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,13 @@
// 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')));
'name' => 'restart', 'value' => get_string('restart', 'question'), 'class' => 'btn btn-secondary'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'save', 'value' => get_string('save', 'question')));
'name' => 'save', 'value' => get_string('save', 'question'), 'class' => 'btn btn-secondary'));
echo html_writer::empty_tag('input', $filldisabled + array('type' => 'submit',
'name' => 'fill', 'value' => get_string('fillincorrect', 'question')));
'name' => 'fill', 'value' => get_string('fillincorrect', 'question'), 'class' => 'btn btn-secondary'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'finish', 'value' => get_string('submitandfinish', 'question')));
'name' => 'finish', 'value' => get_string('submitandfinish', 'question'), 'class' => 'btn btn-secondary'));
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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" />')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
.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.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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" />')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
.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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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" />')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
.set('value', M.util.get_string('closepreview', 'question'));

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

0 comments on commit 009c57d

Please sign in to comment.