MDL-81872 course: Coding style improvements

This commit is contained in:
Andrew Nicols 2024-05-28 09:25:39 +08:00
parent 455cdd8c5b
commit d6d795cd0f
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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;
}