MDL-75664 mod_data: Approval status in database entries

* Add approval status in the default template.
* Change the language string for unapproved entries.
This commit is contained in:
Laurent David
2022-10-17 09:55:11 +02:00
parent 3bc792b9b8
commit e861d7b0ad
17 changed files with 92 additions and 25 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ class template {
if (!$this->instance->approval) {
return '';
}
return ($entry->approved) ? get_string('approved', 'data') : get_string('notapproved', 'data');
return ($entry->approved) ? '' : html_writer::div(get_string('notapproved', 'data'), 'mod-data-approval-status-badge');
}
/**