MDL-56671 mod_scorm: fix styling issues on scorm module
authorSimey Lameze <simey@moodle.com>
Tue, 1 Nov 2016 03:53:49 +0000 (11:53 +0800)
committerSimey Lameze <simey@moodle.com>
Wed, 2 Nov 2016 06:57:13 +0000 (14:57 +0800)
mod/scorm/locallib.php
mod/scorm/report/basic/classes/report.php
mod/scorm/report/interactions/classes/report.php
mod/scorm/report/objectives/classes/report.php

index 3a9488a..7b71623 100644 (file)
@@ -949,11 +949,13 @@ function scorm_print_launch ($user, $scorm, $action, $cm) {
                                                         'action' => $CFG->wwwroot.'/mod/scorm/player.php'));
         if ($scorm->hidebrowse == 0) {
             print_string('mode', 'scorm');
-            echo ': '.html_writer::empty_tag('input', array('type' => 'radio', 'id' => 'b', 'name' => 'mode', 'value' => 'browse')).
+            echo ': '.html_writer::empty_tag('input', array('type' => 'radio', 'id' => 'b', 'name' => 'mode',
+                    'value' => 'browse', 'class' => 'm-r-1')).
                         html_writer::label(get_string('browse', 'scorm'), 'b');
             echo html_writer::empty_tag('input', array('type' => 'radio',
                                                         'id' => 'n', 'name' => 'mode',
-                                                        'value' => 'normal', 'checked' => 'checked')).
+                                                        'value' => 'normal', 'checked' => 'checked',
+                                                        'class' => 'm-x-1')).
                     html_writer::label(get_string('normal', 'scorm'), 'n');
 
         } else {
@@ -976,7 +978,8 @@ function scorm_print_launch ($user, $scorm, $action, $cm) {
         echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'scoid', 'value' => $scorm->launch));
         echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'cm', 'value' => $cm->id));
         echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'currentorg', 'value' => $orgidentifier));
-        echo html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('enter', 'scorm')));
+        echo html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('enter', 'scorm'),
+                'class' => 'btn btn-primary'));
         echo html_writer::end_tag('form');
         echo html_writer::end_div();
     }
index 41e1da5..6c3da63 100644 (file)
@@ -498,7 +498,8 @@ class report extends \mod_scorm\report {
                                                     get_string('selectnone', 'scorm'));
                         echo '&nbsp;&nbsp;';
                         echo \html_writer::empty_tag('input', array('type' => 'submit',
-                                                                    'value' => get_string('deleteselected', 'scorm')));
+                                                                    'value' => get_string('deleteselected', 'scorm'),
+                                                                    'class' => 'btn btn-secondary'));
                         echo \html_writer::end_tag('td').\html_writer::end_tag('tr').\html_writer::end_tag('table');
                         // Close form.
                         echo \html_writer::end_tag('div');
index 7af4050..0def88c 100644 (file)
@@ -588,7 +588,8 @@ class report extends \mod_scorm\report {
                                                     get_string('selectnone', 'scorm'));
                         echo '&nbsp;&nbsp;';
                         echo \html_writer::empty_tag('input', array('type' => 'submit',
-                                                                    'value' => get_string('deleteselected', 'scorm')));
+                                                                    'value' => get_string('deleteselected', 'scorm'),
+                                                                    'class' => 'btn btn-secondary'));
                         echo \html_writer::end_tag('td').\html_writer::end_tag('tr').\html_writer::end_tag('table');
                         // Close form.
                         echo \html_writer::end_tag('div');
@@ -600,17 +601,23 @@ class report extends \mod_scorm\report {
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'ODS') + $displayoptions),
-                                                                   get_string('downloadods'));
+                                                                   get_string('downloadods'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'Excel') + $displayoptions),
-                                                                   get_string('downloadexcel'));
+                                                                   get_string('downloadexcel'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'CSV') + $displayoptions),
-                                                                   get_string('downloadtext'));
+                                                                   get_string('downloadtext'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo \html_writer::end_tag('td');
index 231b973..c671d21 100644 (file)
@@ -580,7 +580,8 @@ class report extends \mod_scorm\report {
                                                     get_string('selectnone', 'scorm'));
                         echo '&nbsp;&nbsp;';
                         echo \html_writer::empty_tag('input', array('type' => 'submit',
-                                                                    'value' => get_string('deleteselected', 'scorm')));
+                                                                    'value' => get_string('deleteselected', 'scorm'),
+                                                                    'class' => 'btn btn-secondary'));
                         echo \html_writer::end_tag('td').\html_writer::end_tag('tr').\html_writer::end_tag('table');
                         // Close form.
                         echo \html_writer::end_tag('div');
@@ -592,17 +593,23 @@ class report extends \mod_scorm\report {
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'ODS') + $displayoptions),
-                                                                   get_string('downloadods'));
+                                                                   get_string('downloadods'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'Excel') + $displayoptions),
-                                                                   get_string('downloadexcel'));
+                                                                   get_string('downloadexcel'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo $OUTPUT->single_button(new \moodle_url($PAGE->url,
                                                                    array('download' => 'CSV') + $displayoptions),
-                                                                   get_string('downloadtext'));
+                                                                   get_string('downloadtext'),
+                                                                   'post',
+                                                                   ['class' => 'm-t-1']);
                         echo \html_writer::end_tag('td');
                         echo \html_writer::start_tag('td');
                         echo \html_writer::end_tag('td');