MDL-57431 mod_quiz: Quiz editing help icon fix
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1
-1
@@ -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',
|
||||
|
||||
+3
-3
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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user