MDL-70817 core_course: Create an activity information output component
authorJun Pataleta <jun@moodle.com>
Fri, 5 Feb 2021 17:18:24 +0000 (01:18 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 2 Apr 2021 13:56:22 +0000 (21:56 +0800)
commitcafe2f95eed15b4f660259bca0ce724d2aab330f
tree725e4f43b45bc72e73a8da5d9b3267743b45c891
parenta1b3596cb870ba5b40bfd479b57aedd54d4a9340
MDL-70817 core_course: Create an activity information output component

The activity information output component displays information about
an activity module that can contain:
1. Activity dates
2. Completion information
   a. A manual completion button; or
   b. A list of automatic completion conditions and their statuses.

This patch also includes a new JS module called
core_course/manual_completion_toggle for toggling the
completion state of activities that support manual completion.
15 files changed:
course/amd/build/manual_completion_toggle.min.js [new file with mode: 0644]
course/amd/build/manual_completion_toggle.min.js.map [new file with mode: 0644]
course/amd/src/manual_completion_toggle.js [new file with mode: 0644]
course/classes/output/activity_information.php [new file with mode: 0644]
course/renderer.php
course/templates/activity_date.mustache [new file with mode: 0644]
course/templates/activity_info.mustache [new file with mode: 0644]
course/templates/completion_automatic.mustache [new file with mode: 0644]
course/templates/completion_manual.mustache [new file with mode: 0644]
lang/en/course.php
lib/outputrenderers.php
theme/boost/scss/moodle/course.scss
theme/boost/scss/moodle/modules.scss
theme/boost/style/moodle.css
theme/classic/style/moodle.css