-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.9, 3.2.6, 3.3.3, 3.4, 3.5
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_35_STABLE
-
MDL-60858-master -
Now we have a navigation link (e.g. "Quiz 002" on attachment: before.png) under "Answer the questions..." link.
And sometime it's not easy to find the right link to click for answering questions.
So I'd like to suggest to use the "Answer the questions ..." button instead of "Answer the questions ..." link to improve the visibility (attachment: after.png).
Please refer to the lines below to modify Feedback module code.
File to edit:
|
mod/feedback/view.php
|
|
Line:
|
141
|
|
[ Before ]
|
} else {
|
$label = get_string('complete_the_form', 'feedback');
|
}
|
echo html_writer::div(html_writer::link($completeurl, $label), 'complete-feedback');
|
} else {
|
// Feedback was already submitted.
|
echo $OUTPUT->notification(get_string('this_feedback_is_already_submitted', 'feedback'));
|
$OUTPUT->continue_button(course_get_url($courseid ?: $course->id));
|
}
|
|
[ After ]
|
} else {
|
$label = get_string('complete_the_form', 'feedback');
|
}
|
// echo html_writer::div(html_writer::link($completeurl, $label), 'complete-feedback');
|
// echo $OUTPUT->single_button($completeurl, get_string('complete_the_form', 'feedback'));
|
// Fixed by Ryan's suggestion.
|
echo html_writer::div(html_writer::link($completeurl, $label, array('class' => 'btn btn-default')), 'complete-feedback');
|
} else {
|
// Feedback was already submitted.
|
echo $OUTPUT->notification(get_string('this_feedback_is_already_submitted', 'feedback'));
|
$OUTPUT->continue_button(course_get_url($courseid ?: $course->id));
|
}
|