MDL-83747 mod_data: Add accessible name for delcheck checkboxes

This commit is contained in:
Jun Pataleta 2024-11-18 19:38:40 +08:00
parent 269a8a8a1b
commit d88d8d902d
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 4 additions and 1 deletions

View File

@ -479,6 +479,8 @@ class template {
'name' => 'delcheck[]',
'classes' => 'recordcheckbox',
'value' => $entry->id,
'label' => get_string('selectfordeletion', 'data'),
'labelclasses' => 'sr-only',
]);
return $OUTPUT->render($checkbox);
}

View File

@ -424,8 +424,9 @@ $string['search:activity'] = 'Database - activity information';
$string['search:entry'] = 'Database - entries';
$string['searchresults'] = 'Entries containing "{$a}"';
$string['selectedrequired'] = 'All selected required';
$string['selectfields'] = 'Select fields';
$string['selectexportoptions'] = 'Select export options';
$string['selectfields'] = 'Select fields';
$string['selectfordeletion'] = 'Select entry for deletion';
$string['showall'] = 'Show all entries';
$string['showmore'] = 'Show more';
$string['single'] = 'View single';