mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 05:28:30 +01:00
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:
parent
580c009cac
commit
10d2b5864b
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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')
|
||||
));
|
||||
|
@ -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',
|
||||
],
|
||||
));
|
||||
|
||||
|
@ -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')
|
||||
))
|
||||
|
@ -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')
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user