MDL-57431 mod_quiz: Quiz editing help icon fix

This commit is contained in:
Mathew May
2017-12-12 09:57:46 +08:00
committed by Simey Lameze
parent 5fdb912a82
commit d997069c62
6 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -443,11 +443,12 @@ class edit_renderer extends \plugin_renderer_base {
$help = '';
}
$helpspan = html_writer::span($help, 'shuffle-help-tip');
$progressspan = html_writer::span('', 'shuffle-progress');
$checkbox = html_writer::empty_tag('input', $checkboxattributes);
$label = html_writer::label(get_string('shufflequestions', 'quiz') . ' ' . $help,
$label = html_writer::label(get_string('shufflequestions', 'quiz'),
$checkboxattributes['id'], false);
return html_writer::span($progressspan . $checkbox . $label,
return html_writer::span($progressspan . $checkbox . $label. ' ' . $helpspan,
'instanceshufflequestions', array('data-action' => 'shuffle_questions'));
}
+5
View File
@@ -739,6 +739,11 @@ table.quizreviewsummary td.cell {
margin: 0.3em 20px 0 0;
}
.instanceshufflequestions [type="checkbox"] {
vertical-align: middle;
margin-right: .5rem;
}
#page-mod-quiz-edit ul.section {
margin: 0;
padding: 0 20px;
@@ -52,7 +52,7 @@ var CSS = {
EDITSECTION: 'a.editing_section',
EDITSECTIONICON: 'a.editing_section .icon',
EDITSHUFFLEQUESTIONSACTION: 'input.cm-edit-action[data-action]',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress .shuffle-help-tip',
HIDE: 'a.editing_hide',
HIGHLIGHT: 'a.editing_highlight',
INSTANCENAME: 'span.instancename',
File diff suppressed because one or more lines are too long
@@ -52,7 +52,7 @@ var CSS = {
EDITSECTION: 'a.editing_section',
EDITSECTIONICON: 'a.editing_section .icon',
EDITSHUFFLEQUESTIONSACTION: 'input.cm-edit-action[data-action]',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress .shuffle-help-tip',
HIDE: 'a.editing_hide',
HIGHLIGHT: 'a.editing_highlight',
INSTANCENAME: 'span.instancename',
+1 -1
View File
@@ -50,7 +50,7 @@ var CSS = {
EDITSECTION: 'a.editing_section',
EDITSECTIONICON: 'a.editing_section .icon',
EDITSHUFFLEQUESTIONSACTION: 'input.cm-edit-action[data-action]',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress',
EDITSHUFFLEAREA: '.instanceshufflequestions .shuffle-progress .shuffle-help-tip',
HIDE: 'a.editing_hide',
HIGHLIGHT: 'a.editing_highlight',
INSTANCENAME: 'span.instancename',