Skip to content

Commit

Permalink
Merge branch 'MDL-80325' of https://github.com/dravek/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jan 18, 2024
2 parents 7469262 + 10d2b58 commit f76362e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
Expand Up @@ -258,7 +258,7 @@ protected function add_actions(): void {
'id' => ':courseid',
]),
new pix_icon('t/delete', '', 'core'),
[],
['class' => 'text-danger'],
false,
new lang_string('delete', 'core')
))->add_callback(static function(stdclass $row): bool {
Expand Down
Expand Up @@ -239,7 +239,7 @@ protected function add_actions(): void {
$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 {
Expand Down
Expand Up @@ -116,7 +116,7 @@ protected function add_actions(): void {
$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')
));
Expand Down
Expand Up @@ -237,7 +237,8 @@ protected function add_columns(tool_types $tooltypesentity): void {
'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',
],
));

Expand Down
Expand Up @@ -307,7 +307,12 @@ protected function add_actions(): void {
$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')
))
Expand Down
7 changes: 6 additions & 1 deletion reportbuilder/classes/local/systemreports/reports_list.php
Expand Up @@ -281,7 +281,12 @@ protected function add_actions(): void {
$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')
))
Expand Down

0 comments on commit f76362e

Please sign in to comment.