MDL-82211 tool_lp: Update SVG icons
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 510 B |
@@ -1,21 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
]>
|
||||
<svg version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" style="overflow:visible;enable-background:new 0 0 16 16;"
|
||||
xml:space="preserve" preserveAspectRatio="xMinYMid meet">
|
||||
<defs>
|
||||
</defs>
|
||||
<path style="fill:#888;" d="M8.5,9.5C8.8,10,9,10.6,9,11.2c0,0.6-0.3,1.1-0.7,1.6l-2.5,2.5C5.2,15.8,4.7,16,4,16
|
||||
s-1.3-0.2-1.7-0.7l-1.5-1.5C0.2,13.3,0,12.7,0,12c0-0.7,0.2-1.3,0.7-1.7l2.5-2.5C3.7,7.3,4.3,7,5,7c0.5,0,1,0.2,1.5,0.5l-1,1
|
||||
C5.3,8.5,5.2,8.4,5,8.4c-0.3,0-0.5,0.1-0.8,0.3l-2.5,2.5c-0.2,0.2-0.3,0.5-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l1.5,1.5
|
||||
c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l2.5-2.5c0.2-0.2,0.3-0.5,0.3-0.8c0-0.2,0-0.3-0.1-0.4L8.5,9.5z M5,10L10,5
|
||||
c0.1-0.1,0.3-0.2,0.5-0.2c0.2,0,0.4,0.1,0.5,0.2c0.1,0.1,0.2,0.3,0.2,0.5c0,0.2-0.1,0.4-0.2,0.5L6,11c-0.1,0.1-0.3,0.2-0.5,0.2
|
||||
c-0.2,0-0.4-0.1-0.5-0.2c-0.1-0.1-0.2-0.3-0.2-0.5C4.8,10.3,4.9,10.1,5,10z M16,4c0,0.7-0.2,1.3-0.7,1.7l-2.5,2.5
|
||||
C12.3,8.7,11.7,9,11,9c-0.5,0-1-0.2-1.5-0.5l1-1c0.1,0.1,0.3,0.1,0.4,0.1c0.3,0,0.5-0.1,0.8-0.3l2.5-2.5c0.2-0.2,0.3-0.5,0.3-0.7
|
||||
s-0.1-0.5-0.3-0.7l-1.5-1.5c-0.2-0.2-0.5-0.3-0.7-0.3s-0.5,0.1-0.7,0.3L8.8,4.2C8.5,4.5,8.4,4.7,8.4,5c0,0.2,0,0.3,0.1,0.4l-1,1
|
||||
C7.2,6,7,5.4,7,4.8s0.3-1.1,0.7-1.6l2.5-2.5C10.8,0.2,11.3,0,12,0c0.7,0,1.3,0.2,1.7,0.7l1.5,1.5C15.8,2.7,16,3.3,16,4z"/>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"/></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 644 B |
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}}
|
||||
<div data-region="coursecompetenciespage">
|
||||
<div data-region="actions" class="clearfix">
|
||||
@@ -45,7 +73,7 @@
|
||||
data-action="configure-course-competency-settings"
|
||||
data-courseid="{{courseid}}"
|
||||
data-pushratingstouserplans="{{settings.pushratingstouserplans}}">
|
||||
{{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}}
|
||||
{{#pix}}i/settings, core, {{#str}}edit{{/str}}{{/pix}}
|
||||
</a>
|
||||
{{/canconfigurecoursecompetencies}}
|
||||
</p>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<h2>
|
||||
{{{framework.shortname}}}
|
||||
{{#canmanage}}
|
||||
<a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{framework.id}}&pagecontextid={{pagecontextid}}&return=competencies">{{#pix}}t/edit, core, {{#str}}editcompetencyframework, tool_lp{{/str}}{{/pix}}</a>
|
||||
<a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{framework.id}}&pagecontextid={{pagecontextid}}&return=competencies">{{#pix}}i/settings, core, {{#str}}editcompetencyframework, tool_lp{{/str}}{{/pix}}</a>
|
||||
{{/canmanage}}
|
||||
</h2>
|
||||
<div>{{{framework.description}}}</div>
|
||||
@@ -151,4 +151,3 @@ require(['tool_lp/tree', 'tool_lp/competencytree', 'tool_lp/competencyactions',
|
||||
|
||||
});
|
||||
{{/js}}
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/manage_competency_frameworks_page
|
||||
|
||||
Manage competency frameworks template.
|
||||
|
||||
Classes required for JS:
|
||||
@@ -32,6 +34,21 @@
|
||||
* competencyframeworks - array of objects containing id, shortname, idnumber, visible
|
||||
* canmanage - true if this user has permission to manage the frameworks
|
||||
* navigation - array of strings containing buttons for navigation
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"competencyframeworks": {
|
||||
"id": 1,
|
||||
"shortname": "Framework1",
|
||||
"idnumber": "FRAME1",
|
||||
"visible": true,
|
||||
"contextnamenoprefix": "System",
|
||||
"competenciescount": 26,
|
||||
"pluginbaseurl": "https://example.com",
|
||||
"pagecontextid": 1
|
||||
},
|
||||
"canmanage": true
|
||||
}
|
||||
}}
|
||||
<div data-region="managecompetencies">
|
||||
<div class="float-left">
|
||||
@@ -63,7 +80,7 @@
|
||||
<ul class="dropdown dropdown-menu">
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{id}}&pagecontextid={{pagecontextid}}">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
{{#pix}}i/settings{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/manage_templates_page
|
||||
|
||||
Manage learning plan templates template.
|
||||
|
||||
Classes required for JS:
|
||||
@@ -30,6 +32,21 @@
|
||||
Context variables required for this template:
|
||||
* templates - array of objects containing id, shortname, visible, canmanage, contextname
|
||||
* navigation - array of strings containing buttons for navigation
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"templates": {
|
||||
"id": 1,
|
||||
"shortname": "Template1",
|
||||
"visible": true,
|
||||
"contextnamenoprefix": "System",
|
||||
"cohortscount": 12,
|
||||
"planscount": 6,
|
||||
"pluginbaseurl": "https://example.com",
|
||||
"pagecontextid": 1
|
||||
},
|
||||
"canmanage": true
|
||||
}
|
||||
}}
|
||||
<div data-region="managetemplates">
|
||||
<div class="float-left">
|
||||
@@ -65,7 +82,7 @@
|
||||
<ul class="dropdown dropdown-menu">
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/edittemplate.php?id={{id}}&pagecontextid={{pagecontextid}}&return=templates">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
{{#pix}}i/settings{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
|
||||
Reference in New Issue
Block a user