diff --git a/admin/tool/lp/lib.php b/admin/tool/lp/lib.php index 1160a63093b..ea5f1cec01f 100644 --- a/admin/tool/lp/lib.php +++ b/admin/tool/lp/lib.php @@ -225,7 +225,7 @@ function tool_lp_coursemodule_edit_post_actions($data, $course) { */ function tool_lp_get_fontawesome_icon_map() { return [ - 'tool_lp:url' => 'fa-external-link' + 'tool_lp:url' => 'fa-arrow-up-right-from-square', ]; } diff --git a/admin/tool/lp/pix/url.png b/admin/tool/lp/pix/url.png deleted file mode 100644 index ae43c5a2afd..00000000000 Binary files a/admin/tool/lp/pix/url.png and /dev/null differ diff --git a/admin/tool/lp/pix/url.svg b/admin/tool/lp/pix/url.svg index 49788745bc0..1d8cac77a3b 100644 --- a/admin/tool/lp/pix/url.svg +++ b/admin/tool/lp/pix/url.svg @@ -1,21 +1 @@ - - - -]> - + diff --git a/admin/tool/lp/styles.css b/admin/tool/lp/styles.css index bfc7d6d1c88..2c4752aa275 100644 --- a/admin/tool/lp/styles.css +++ b/admin/tool/lp/styles.css @@ -247,3 +247,12 @@ input[type="checkbox"].tool_lp_scale_proficient { .path-admin-tool-lp #region-main { overflow-x: visible; } + +ul.competency-tree img { + width: 16px; + height: 16px; +} + +[data-region="managecompetencies"] a .icon { + color: initial; +} diff --git a/admin/tool/lp/templates/course_competencies_page.mustache b/admin/tool/lp/templates/course_competencies_page.mustache index 6837bfdebe0..fa6ef65d973 100644 --- a/admin/tool/lp/templates/course_competencies_page.mustache +++ b/admin/tool/lp/templates/course_competencies_page.mustache @@ -22,6 +22,34 @@ For a full list of the context for this template see the course_competencies_page renderable. This template includes ajax functionality, so it cannot be shown in the template library. + + Example context (json): + { + "canmanagecoursecompetencies": true, + "cangradecompetencies": true, + "settings": { + "pushratingstouserplans": true + }, + "canconfigurecoursecompetencies": true, + "competencies": [{ + "competency": { + "id": 2, + "shortname": "Competency1", + "idnumber": "COMP1", + "description": "Competency1 description" + }, + "coursecompetency": { + "id": 1 + }, + "ruleoutcomeoptions": [{ + "value": "1", + "text": "Mark as complete" + }, { + "value": "2", + "text": "Mark as complete and request review" + }] + }] + } }}