MDL-80325 reportbuilder: Update 'Delete' links to red color

- Update all 'Delete' links on RB system report actions to red color
This commit is contained in:
David Carrillo 2023-12-12 17:47:29 +01:00
parent 580c009cac
commit 10d2b5864b
No known key found for this signature in database
GPG Key ID: F805F8542D4C72CD
6 changed files with 17 additions and 6 deletions

View File

@ -258,7 +258,7 @@ class badges extends system_report {
'id' => ':courseid',
]),
new pix_icon('t/delete', '', 'core'),
[],
['class' => 'text-danger'],
false,
new lang_string('delete', 'core')
))->add_callback(static function(stdclass $row): bool {

View File

@ -239,7 +239,7 @@ class cohorts extends system_report {
$this->add_action((new action(
new moodle_url('/cohort/edit.php', ['id' => ':id', 'delete' => 1, 'returnurl' => $returnurl]),
new pix_icon('t/delete', '', 'core'),
[],
['class' => 'text-danger'],
false,
new lang_string('delete')
))->add_callback(function(stdClass $row): bool {

View File

@ -116,7 +116,7 @@ class comments extends system_report {
$this->add_action(new action(
new moodle_url('#'),
new pix_icon('t/delete', ''),
['data-action' => 'comment-delete', 'data-comment-id' => ':id'],
['data-action' => 'comment-delete', 'data-comment-id' => ':id', 'class' => 'text-danger'],
false,
new lang_string('delete')
));

View File

@ -237,7 +237,8 @@ class course_external_tools_list extends system_report {
'data-action' => 'course-tool-delete',
'data-course-tool-id' => $row->id,
'data-course-tool-name' => $row->name,
'data-course-tool-usage' => $this->perrowtoolusage
'data-course-tool-usage' => $this->perrowtoolusage,
'class' => 'text-danger',
],
));

View File

@ -307,7 +307,12 @@ class report_schedules extends system_report {
$this->add_action((new action(
new moodle_url('#'),
new pix_icon('t/delete', ''),
['data-action' => 'schedule-delete', 'data-schedule-id' => ':id', 'data-schedule-name' => ':name'],
[
'data-action' => 'schedule-delete',
'data-schedule-id' => ':id',
'data-schedule-name' => ':name',
'class' => 'text-danger',
],
false,
new lang_string('deleteschedule', 'core_reportbuilder')
))

View File

@ -281,7 +281,12 @@ class reports_list extends system_report {
$this->add_action((new action(
new moodle_url('#'),
new pix_icon('t/delete', ''),
['data-action' => 'report-delete', 'data-report-id' => ':id', 'data-report-name' => ':name'],
[
'data-action' => 'report-delete',
'data-report-id' => ':id',
'data-report-name' => ':name',
'class' => 'text-danger',
],
false,
new lang_string('deletereport', 'core_reportbuilder')
))