MDL-56826 question: Add bootstrap styles to question preview
authorDamyon Wiese <damyon@moodle.com>
Thu, 17 Nov 2016 07:51:48 +0000 (15:51 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 17 Nov 2016 08:14:34 +0000 (16:14 +0800)
question/preview.php
question/yui/build/moodle-question-preview/moodle-question-preview-debug.js
question/yui/build/moodle-question-preview/moodle-question-preview-min.js
question/yui/build/moodle-question-preview/moodle-question-preview.js
question/yui/src/preview/js/preview.js

index 8c7947f..7e0a719 100644 (file)
@@ -255,13 +255,13 @@ echo $quba->render_question($slot, $options, $displaynumber);
 // 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');
 
index d7f4466..d338ff0 100644 (file)
Binary files a/question/yui/build/moodle-question-preview/moodle-question-preview-debug.js and b/question/yui/build/moodle-question-preview/moodle-question-preview-debug.js differ
index fea085d..6b93dbd 100644 (file)
Binary files a/question/yui/build/moodle-question-preview/moodle-question-preview-min.js and b/question/yui/build/moodle-question-preview/moodle-question-preview-min.js differ
index d7f4466..d338ff0 100644 (file)
Binary files a/question/yui/build/moodle-question-preview/moodle-question-preview.js and b/question/yui/build/moodle-question-preview/moodle-question-preview.js differ
index 21de48f..ebfd0f4 100644 (file)
@@ -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() {