MDL-77734 core_courseformat: add title to bulk duplicate activities

This commit is contained in:
Ferran Recio 2023-03-24 12:55:55 +01:00
parent 09fd61415e
commit 5cdb09d10c
3 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@ class bulkedittools implements named_templatable, renderable {
'icon' => 't/copy',
'action' => 'cmDuplicate',
'name' => get_string('duplicate'),
'title' => get_string('cmsduplicate', 'core_courseformat'),
'bulk' => 'cm',
];
}

View File

@ -102,7 +102,7 @@ Feature: Bulk course activity actions.
Given I click on "Select activity Activity sample 1" "checkbox"
And I click on "Select activity Activity sample 3" "checkbox"
And I should see "2 selected" in the "sticky-footer" "region"
When I click on "Duplicate" "button" in the "sticky-footer" "region"
When I click on "Duplicate activities" "button" in the "sticky-footer" "region"
Then I should see "Activity sample 1" in the "Topic 1" "section"
And I should see "Activity sample 1 (copy)" in the "Topic 1" "section"
And "Activity sample 1 (copy)" "activity" should appear after "Activity sample 1" "activity"

View File

@ -38,6 +38,7 @@ $string['cmdelete_title'] = 'Delete activity?';
$string['cmsdelete'] = 'Delete activities';
$string['cmsdelete_info'] = 'This will delete {$a->count} activities and any user data they contain';
$string['cmsdelete_title'] = 'Delete selected activities?';
$string['cmsduplicate'] = 'Duplicate activities';
$string['cmsmove'] = 'Move activities';
$string['cmmove_title'] = 'Move activity';
$string['cmmove_info'] = 'Move "{$a}" activity after';