mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-81872 course: Coding style improvements
This commit is contained in:
parent
455cdd8c5b
commit
d6d795cd0f
@ -2,7 +2,7 @@ issueNumber: MDL-81872
|
||||
notes:
|
||||
core_course:
|
||||
- message: >+
|
||||
The reset course page has been improved. The "Delete" or "Remove" wording have been removed from all the options to make it easier to focus on the data to be removed and avoid inconsistencies and duplicated information.
|
||||
The reset course page has been improved. The words "Delete" and "Remove" have been removed from all the options to make it easier to focus on the data to be removed and avoid inconsistencies and duplicated information.
|
||||
Third party plugins implementing reset methods might need to:
|
||||
|
||||
- Add static element in the _reset_course_form_definition method before all the options with the Delete string:
|
||||
|
@ -84,9 +84,9 @@ if ($mform->is_cancelled()) {
|
||||
if ($item['error'] === false) {
|
||||
$line[] = get_string('statusdone');
|
||||
} else {
|
||||
$line[] = '<div class="text-danger">' .
|
||||
$OUTPUT->pix_icon('i/invalid', get_string('error')) . $item['error'] .
|
||||
'</div>';
|
||||
$line[] = html_writer::div(
|
||||
$OUTPUT->pix_icon('i/invalid', get_string('error')) . $item['error'],
|
||||
);
|
||||
}
|
||||
$data[] = $line;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user