MDL-71953 calendar: Accessibility improvement for manage subscription

- Create new web services for manage subscription (Update calendar subscription)
 - Modified delete subscription feature to use Web service.
 - Midified update subscription feature to use in-place editbale
 - Delete subscription feature now have a confirmation box before processing.
 - Fixed some accessibility issues
 - Used 'Delete' instead of 'Remove' for deleting subscriptions
This commit is contained in:
Huong Nguyen
2021-10-21 11:02:34 +07:00
parent 8885e22a0b
commit bca6b06a1c
27 changed files with 670 additions and 165 deletions
+10 -1
View File
@@ -60,7 +60,16 @@ class calendar_cron_task extends scheduled_task {
mtrace("Updating calendar subscription {$sub->name} in course {$sub->courseid}");
try {
$log = calendar_update_subscription_events($sub->id);
mtrace(trim(strip_tags($log)));
mtrace($log['eventsimported'] . ' events were imported');
mtrace($log['eventsskipped'] . ' events were skipped');
mtrace($log['eventsupdated'] . ' events were updated');
mtrace($log['eventsdeleted'] . ' events were deleted');
if ($log['haserror']) {
mtrace('Failed to add event');
foreach ($log['errors'] as $error) {
mtrace(trim(strip_tags($error)));
}
}
} catch (\moodle_exception $ex) {
mtrace('Error updating calendar subscription: ' . $ex->getMessage());
}