mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-56684 competencies: Boost for competency templates
Add BS4 markup to all competencies templates. Also tweaked the template library to make it easier in future when modifying templates and reloading.
This commit is contained in:
parent
f95c00e551
commit
207136f279
2
admin/tool/lp/amd/build/menubar.min.js
vendored
2
admin/tool/lp/amd/build/menubar.min.js
vendored
File diff suppressed because one or more lines are too long
@ -258,7 +258,7 @@ define(['jquery'], function($) {
|
||||
Menubar.prototype.setOpenDirection = function() {
|
||||
var pos = this.menuRoot.offset();
|
||||
var isRTL = $(document.body).hasClass('dir-rtl');
|
||||
var openLeft = false;
|
||||
var openLeft = true;
|
||||
var heightmenuRoot = this.rootMenus.outerHeight();
|
||||
var widthmenuRoot = this.rootMenus.outerWidth();
|
||||
// Sometimes the menuMinWidth is not enough to figure out if menu exceeds the window width.
|
||||
|
@ -181,7 +181,8 @@
|
||||
}
|
||||
|
||||
.tool-lp-menu.tool-lp-menu-open-left .tool-lp-sub-menu {
|
||||
margin-left: -120px;
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/** This highlighting is copied from bootstrap - but can be overridden by a theme */
|
||||
|
@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/action_selector
|
||||
|
||||
Select an action to execute.
|
||||
|
||||
Classes required for JS:
|
||||
@ -28,18 +30,29 @@
|
||||
* choices - List of possible actions
|
||||
* confirm - Text for button confirms
|
||||
* cancel - Text for button cancel
|
||||
}}
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"message": "Message",
|
||||
"choices": [
|
||||
{ "value": "1", "text": "One" },
|
||||
{ "value": "2", "text": "Two" }
|
||||
],
|
||||
"confirm": "Confirm",
|
||||
"cancel": "Cancel"
|
||||
}
|
||||
}}
|
||||
<div data-region="action-selector">
|
||||
<div data-region="action-selector-message">
|
||||
{{message}}<br>
|
||||
</div><br>
|
||||
<div data-region="action-selector-radio-buttons">
|
||||
{{#choices}}
|
||||
<input id="action-selection-option-{{value}}" type="radio" name="choice" value="{{value}}"/><label for="action-selection-option-{{value}}">{{text}}</label><br>
|
||||
<input id="action-selection-option-{{value}}" type="radio" class="m-r-1" name="choice" value="{{value}}"/><label for="action-selection-option-{{value}}">{{text}}</label><br>
|
||||
{{/choices}}
|
||||
</div><br>
|
||||
<div data-region="action_selector-buttons">
|
||||
<input type="button" data-action="action-selector-confirm" value="{{confirm}}"/>
|
||||
<input type="button" data-action="action-selector-cancel" value="{{cancel}}"/>
|
||||
<input type="button" data-action="action-selector-confirm" class="btn btn-primary" value="{{confirm}}"/>
|
||||
<input type="button" data-action="action-selector-cancel" class="btn btn-secondary" value="{{cancel}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,6 +45,7 @@
|
||||
* template
|
||||
* uniqid
|
||||
|
||||
// This template has no example context because it would trigger real updates to the DB.
|
||||
Example context (json):
|
||||
{
|
||||
}
|
||||
|
@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competencies_move_tree
|
||||
|
||||
Manage competencies template.
|
||||
|
||||
Classes required for JS:
|
||||
@ -25,6 +27,16 @@
|
||||
Context variables required for this template:
|
||||
* framework -
|
||||
* competencies - array of objects containing id, shortname, idnumber, sortorder, parentid, competencyframeworkid, path
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"framework": {
|
||||
"shortname":"framework"
|
||||
},
|
||||
"competencies": [
|
||||
{ "name": "Competency", "id": 1 }
|
||||
]
|
||||
}
|
||||
}}
|
||||
<div data-region="competencymovetree" >
|
||||
<label>{{#str}}selectcompetencymovetarget, tool_lp{{/str}}</label>
|
||||
@ -41,7 +53,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div data-region="move-buttons">
|
||||
<input type="button" data-action="move" value="{{#str}}move{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
<div data-region="move-buttons" class="pull-xs-right">
|
||||
<input type="button" data-action="move" class="btn btn-primary" value="{{#str}}move{{/str}}"/>
|
||||
<input type="button" data-action="cancel" class="btn btn-secondary" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
@ -1,3 +1,54 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competencies_tree
|
||||
|
||||
Recursively build a competencies tree.
|
||||
|
||||
Classes required for JS:
|
||||
|
||||
Data attibutes required for JS:
|
||||
* data-enhance=movetree
|
||||
|
||||
Context variables required for this template:
|
||||
* id, shortname, idnumber, sortorder, parentid, competencyframeworkid, path, children
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"id": 1,
|
||||
"shortname": "short",
|
||||
"idnumber": "SHORT",
|
||||
"sortorder": 1,
|
||||
"parentid": 0,
|
||||
"competencyframeworkid": 1,
|
||||
"path": "/",
|
||||
"haschildren": true,
|
||||
"children": [{
|
||||
"id": 2,
|
||||
"shortname": "child",
|
||||
"idnumber": "CHILD",
|
||||
"sortorder": 1,
|
||||
"parentid": 1,
|
||||
"competencyframeworkid": 1,
|
||||
"path": "/1/",
|
||||
"children": []
|
||||
}]
|
||||
}
|
||||
}}
|
||||
<li data-id="{{id}}">
|
||||
{{#canmanage}}
|
||||
<span draggable="true">
|
||||
|
@ -1,4 +1,49 @@
|
||||
<ul data-enhance="tree">
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competencies_tree_root
|
||||
|
||||
Recursively build a competencies tree.
|
||||
|
||||
Classes required for JS:
|
||||
|
||||
Data attibutes required for JS:
|
||||
* data-enhance=movetree
|
||||
|
||||
Context variables required for this template:
|
||||
* id, shortname, idnumber, sortorder, parentid, competencyframeworkid, path, children
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"shortname": "short",
|
||||
"haschildren": true,
|
||||
"competencies": [{
|
||||
"id": 2,
|
||||
"shortname": "child",
|
||||
"idnumber": "CHILD",
|
||||
"sortorder": 1,
|
||||
"parentid": 1,
|
||||
"competencyframeworkid": 1,
|
||||
"path": "/1/",
|
||||
"children": []
|
||||
}]
|
||||
}
|
||||
}}
|
||||
<ul data-enhance="tree" class="competency-tree">
|
||||
<li><span>{{{shortname}}}</span>
|
||||
<ul>
|
||||
{{#competencies}}
|
||||
|
@ -1,26 +1,59 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_grader
|
||||
|
||||
Template for grading a competency.
|
||||
|
||||
Classes required for JS:
|
||||
None
|
||||
|
||||
Data required for JS:
|
||||
* ratings - list of value, name selected for valid ratings
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"ratings": [
|
||||
{"name": "Bad", "value": 0, "selected": true},
|
||||
{"name": "OK", "value": 1},
|
||||
{"name": "Good", "value": 2}
|
||||
]
|
||||
}
|
||||
}}
|
||||
<div class="competency-grader" data-region="competency-grader">
|
||||
<form>
|
||||
<div class="content">
|
||||
<div data-region="rating">
|
||||
<label for="rating_{{uniqid}}">{{#str}}rating, tool_lp{{/str}}</label>
|
||||
<select name="rating" id="rating_{{uniqid}}">
|
||||
<select name="rating" id="rating_{{uniqid}}" class="custom-select">
|
||||
{{#ratings}}
|
||||
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/ratings}}
|
||||
</select>
|
||||
</div>
|
||||
<div data-region="comment">
|
||||
<div data-region="comment" class="m-t-1">
|
||||
<label for="comment_{{uniqid}}">{{#str}}ratecomment, tool_lp{{/str}}</label>
|
||||
<textarea name="comment" id="comment_{{uniqid}}"></textarea>
|
||||
<textarea name="comment" id="comment_{{uniqid}}" class="form-control m-b-1"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div data-region="footer">
|
||||
<div class="pull-right">
|
||||
<input type="button" data-action="rate" value="{{#str}}rate, tool_lp{{/str}}" class="btn">
|
||||
</div>
|
||||
<div>
|
||||
<button data-action="cancel" class="btn btn-link">{{#str}}cancel{{/str}}</button>
|
||||
</div>
|
||||
<div data-region="footer" class="pull-xs-right">
|
||||
<input type="button" data-action="rate" value="{{#str}}rate, tool_lp{{/str}}" class="btn btn-primary">
|
||||
<button data-action="cancel" class="btn btn-secondary">{{#str}}cancel{{/str}}</button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_path
|
||||
|
||||
Competency path template.
|
||||
|
||||
Classes required for JS:
|
||||
@ -24,18 +26,33 @@
|
||||
* framework - The competency framework
|
||||
* id - competency id
|
||||
* name - competency idnumber
|
||||
* first - true if node is in first position
|
||||
* last - true if node is in last position
|
||||
* position - the position of the node in the list
|
||||
|
||||
* ancestors - array of nodes
|
||||
* id - competency id
|
||||
* name - competency idnumber
|
||||
* first - true if node is in first position
|
||||
* last - true if node is in last position
|
||||
* position - the position of the node in the list
|
||||
|
||||
* pluginbaseurl - base url of plugin tool_lp
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"framework": {
|
||||
"id": "1",
|
||||
"name": "Framework"
|
||||
},
|
||||
"ancestors": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "C1"
|
||||
},
|
||||
{
|
||||
"id": "1",
|
||||
"name": "C2",
|
||||
"last": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}}
|
||||
<nav id="competency-path-{{uniqid}}">
|
||||
<small>
|
||||
|
@ -1,20 +1,75 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_picker
|
||||
|
||||
Show a competency tree and allow picking a competency.
|
||||
|
||||
Context variables required for this template:
|
||||
* frameworks - array of competency framework
|
||||
* id
|
||||
* shortname
|
||||
* idnumber
|
||||
* selected
|
||||
|
||||
* framework - competency framework
|
||||
* id
|
||||
* name
|
||||
* shortname
|
||||
* idnumber
|
||||
|
||||
* competencies - array of nodes
|
||||
* id - competency id
|
||||
* name - competency idnumber
|
||||
* children - array of children
|
||||
* haschildren - boolean
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"frameworks": [
|
||||
{
|
||||
"id": "1",
|
||||
"shortname": "Framework",
|
||||
"idnumber": "F1"
|
||||
}
|
||||
],
|
||||
"competencies": [
|
||||
]
|
||||
}
|
||||
}}
|
||||
<div data-region="competencylinktree">
|
||||
{{^singleFramework}}
|
||||
<h3>{{#str}}competencyframeworks, tool_lp{{/str}}</h3>
|
||||
<select data-action="chooseframework">
|
||||
<select data-action="chooseframework" class="custom-select">
|
||||
{{#frameworks}}
|
||||
<option value="{{id}}" {{#selected}}selected="selected"{{/selected}}>{{{shortname}}} <em>{{idnumber}}</em></option>
|
||||
{{/frameworks}}
|
||||
</select>
|
||||
{{/singleFramework}}
|
||||
<h3>{{#str}}locatecompetency, tool_lp{{/str}}</h3>
|
||||
<h3 class="m-t-1">{{#str}}locatecompetency, tool_lp{{/str}}</h3>
|
||||
|
||||
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button>{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
<form data-region="filtercompetencies" class="form-inline" data-frameworkid="{{framework.id}}">
|
||||
<div class="form-group">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" class="form-control" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button class="btn btn-secondary">{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<ul data-enhance="linktree" style="display: none;">
|
||||
<ul data-enhance="linktree" style="display: none;" class="m-t-1 competency-tree">
|
||||
<li><span>{{{framework.shortname}}}</span>
|
||||
<ul>
|
||||
{{#competencies}}
|
||||
@ -23,8 +78,9 @@
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div data-region="link-buttons">
|
||||
<input type="button" data-action="add" value="{{#str}}add{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
<div data-region="link-buttons" class="m-t-1 pull-xs-right">
|
||||
<input type="button" class="btn btn-primary" data-action="add" value="{{#str}}add{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
@ -1,12 +1,57 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_picker_competencyform
|
||||
|
||||
Show a competency tree and allow picking a competency.
|
||||
|
||||
Context variables required for this template:
|
||||
* framework - The competency framework
|
||||
* id
|
||||
* name
|
||||
* shortname
|
||||
|
||||
* competencies - array of nodes
|
||||
* id - competency id
|
||||
* name - competency idnumber
|
||||
* children - array of children
|
||||
* haschildren - boolean
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"framework": {
|
||||
"id": "1",
|
||||
"name": "Framework"
|
||||
},
|
||||
"competencies": [
|
||||
]
|
||||
}
|
||||
}}
|
||||
<div data-region="competencylinktree">
|
||||
<h3>{{#str}}locatecompetency, tool_lp{{/str}}</h3>
|
||||
|
||||
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button>{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
<form data-region="filtercompetencies" class="form-inline" data-frameworkid="{{framework.id}}">
|
||||
<div class="form-group">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" class="form-control" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button class="btn btn-secondary">{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<ul data-enhance="linktree" style="display: none;">
|
||||
<ul data-enhance="linktree" style="display: none;" class="m-t-1 competency-tree">
|
||||
<li data-id="0"><span>{{{framework.shortname}}}</span>
|
||||
<ul>
|
||||
{{#competencies}}
|
||||
@ -15,8 +60,9 @@
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div data-region="link-buttons">
|
||||
<input type="button" data-action="add" value="{{#str}}select{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
<div data-region="link-buttons" class="m-t-1 pull-xs-right">
|
||||
<input type="button" class="btn btn-primary" data-action="add" value="{{#str}}select{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
@ -1,22 +1,80 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_picker_user_plans
|
||||
|
||||
Show a competency tree and allow picking a competency.
|
||||
|
||||
Context variables required for this template:
|
||||
* singlePlan - boolean
|
||||
|
||||
* plans - array of plans
|
||||
* id
|
||||
* selected
|
||||
* name
|
||||
|
||||
* plan
|
||||
* id
|
||||
* name
|
||||
|
||||
* competencies - array of nodes
|
||||
* id - competency id
|
||||
* name - competency idnumber
|
||||
* children - array of children
|
||||
* haschildren - boolean
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"singlePlan": false,
|
||||
"plans": [
|
||||
{
|
||||
"id": "1",
|
||||
"name": "Plan"
|
||||
}
|
||||
],
|
||||
"plan": {
|
||||
"id": "1",
|
||||
"name": "Plan"
|
||||
},
|
||||
"competencies": []
|
||||
}
|
||||
}}
|
||||
|
||||
<div data-region="competencylinktree">
|
||||
{{^singlePlan}}
|
||||
<h3>{{#str}}learningplans, tool_lp{{/str}}</h3>
|
||||
<select data-action="chooseplan">
|
||||
<select data-action="chooseplan" class="custom-select">
|
||||
{{#plans}}
|
||||
<option value="{{id}}" {{#selected}}selected="selected"{{/selected}}>{{{name}}}</option>
|
||||
{{/plans}}
|
||||
</select>
|
||||
{{/singlePlan}}
|
||||
|
||||
<h3>{{#str}}locatecompetency, tool_lp{{/str}}</h3>
|
||||
<h3 class="m-t-1">{{#str}}locatecompetency, tool_lp{{/str}}</h3>
|
||||
|
||||
<form data-region="filtercompetencies" data-planid="{{plan.id}}">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button>{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
<form data-region="filtercompetencies" data-planid="{{plan.id}}" class="form-inline">
|
||||
<div class="form-group">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" class="form-control" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button class="btn btn-secondary">{{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<ul data-enhance="linktree" style="display: none;">
|
||||
<ul data-enhance="linktree" style="display: none;" class="m-t-1 competency-tree">
|
||||
<li><span>{{{plan.name}}}</span>
|
||||
<ul>
|
||||
{{#competencies}}
|
||||
@ -26,9 +84,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div data-region="link-buttons">
|
||||
<input type="button" data-action="add" value="{{#str}}add{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
<div data-region="link-buttons" class="m-t-1 pull-xs-right">
|
||||
<input type="button" class="btn btn-primary" data-action="add" value="{{#str}}add{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
@ -1,4 +1,38 @@
|
||||
<div class="pull-right well">
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_plan_navigation
|
||||
|
||||
Show an auto-complete for jumping to competencies in a plan.
|
||||
|
||||
Context variables required for this template:
|
||||
* hascompetencies - boolean
|
||||
* competencies - array of competencies
|
||||
* id
|
||||
* shortname
|
||||
* idnumber
|
||||
* selected
|
||||
* userid
|
||||
* competencyid
|
||||
* planid
|
||||
|
||||
// No example context because the JS is connected to webservices
|
||||
}}
|
||||
<div class="pull-xs-right card card-block">
|
||||
{{#hascompetencies}}
|
||||
<span>
|
||||
<label for="competency-nav-{{uniqid}}" class="accesshide">{{#str}}jumptocompetency, tool_lp{{/str}}</label>
|
||||
@ -9,7 +43,6 @@
|
||||
</select>
|
||||
</span>
|
||||
{{/hascompetencies}}
|
||||
</form>
|
||||
</div>
|
||||
{{#js}}
|
||||
require(['core/form-autocomplete', 'tool_lp/competency_plan_navigation'], function(autocomplete, nav) {
|
||||
|
@ -1,3 +1,54 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_rule_config
|
||||
|
||||
Configuration dialogue for competency rules.
|
||||
|
||||
Context variables required for this template:
|
||||
* config - boolean
|
||||
* outcomes - array
|
||||
* code
|
||||
* name
|
||||
* selected
|
||||
* rules - array
|
||||
* type
|
||||
* name
|
||||
* selected
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"config": true,
|
||||
"outcomes": [
|
||||
{
|
||||
"code": "C1",
|
||||
"name": "Complete",
|
||||
"selected": true
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"type": "Type",
|
||||
"name": "Something happens",
|
||||
"selected": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}}
|
||||
<div data-region="competencyruleconfig">
|
||||
<div data-region="content">
|
||||
|
||||
@ -6,18 +57,18 @@
|
||||
{{/config}}
|
||||
|
||||
{{#config}}
|
||||
<div data-region="rule-base">
|
||||
<div data-region="rule-outcome">
|
||||
<div data-region="rule-base" class="form">
|
||||
<div data-region="rule-outcome" class="form-group">
|
||||
<label>{{#str}}outcome, tool_lp{{/str}}</label>
|
||||
<select name="outcome" ng-label="{{#str}}outcome, tool_lp{{/str}}">
|
||||
<select name="outcome" class="custom-select" ng-label="{{#str}}outcome, tool_lp{{/str}}">
|
||||
{{#outcomes}}
|
||||
<option value="{{code}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
{{/outcomes}}
|
||||
</select>
|
||||
</div>
|
||||
<div data-region="rule-type">
|
||||
<div data-region="rule-type" class="form-group">
|
||||
<label>{{#str}}when, tool_lp{{/str}}</label>
|
||||
<select name="rule" ng-label="{{#str}}when, tool_lp{{/str}}">
|
||||
<select name="rule" class="custom-select" ng-label="{{#str}}when, tool_lp{{/str}}">
|
||||
<option value="-1">{{#str}}choosedots{{/str}}</option>
|
||||
{{#rules}}
|
||||
<option value="{{type}}" {{#selected}}selected{{/selected}}>{{name}}</option>
|
||||
@ -30,10 +81,10 @@
|
||||
{{/config}}
|
||||
</div>
|
||||
|
||||
<div data-region="footer">
|
||||
<div data-region="footer" class="pull-xs-right">
|
||||
{{#config}}
|
||||
<input type="button" data-action="save" value="{{#str}}savechanges{{/str}}"/>
|
||||
<input type="button" class="btn btn-primary" data-action="save" value="{{#str}}savechanges{{/str}}"/>
|
||||
{{/config}}
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,3 +1,43 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_rule_points
|
||||
|
||||
Configuration dialogue for competency points rule.
|
||||
|
||||
Context variables required for this template:
|
||||
* children
|
||||
* id
|
||||
* shortname
|
||||
* points
|
||||
* requiredpoints
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"id": "1",
|
||||
"shortname": "Competency",
|
||||
"points": 2
|
||||
}
|
||||
],
|
||||
"requiredpoints": 4
|
||||
}
|
||||
}}
|
||||
<div class="competency-rule-points">
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
@ -13,7 +53,7 @@
|
||||
<th scope="row">{{{shortname}}}</th>
|
||||
<td>
|
||||
<label class="accesshide" for="pointsforcompetency-{{id}}">{{#str}}pointsgivenfor, tool_lp, {{{competency.shortname}}}{{/str}}</label>
|
||||
<input id="pointsforcompetency-{{id}}" type="number" min="0" value="{{points}}" name="points" />
|
||||
<input id="pointsforcompetency-{{id}}" type="number" min="0" value="{{points}}" name="points" class="form-control"/>
|
||||
</td>
|
||||
<td>
|
||||
<label class="accesshide" for="competency-{{id}}-isrequired">{{#str}}aisrequired, tool_lp, {{{competency.shortname}}}{{/str}}</label>
|
||||
@ -25,7 +65,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="row">{{#str}}totalrequiredtocomplete, tool_lp{{/str}}</th>
|
||||
<td><input type="number" min="1" value="{{requiredpoints}}" name="requiredpoints" aria-label="{{#str}}totalrequiredtocomplete, tool_lp{{/str}}"></td>
|
||||
<td><input type="number" min="1" value="{{requiredpoints}}" name="requiredpoints" aria-label="{{#str}}totalrequiredtocomplete, tool_lp{{/str}}" class="form-control"></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
@ -1,3 +1,53 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/competency_summary
|
||||
|
||||
Summary of a competency
|
||||
|
||||
Context variables required for this template:
|
||||
* competency
|
||||
* id
|
||||
* shortname
|
||||
* idnumber
|
||||
* description
|
||||
* framework
|
||||
* shortname
|
||||
* comppath array of ancestors
|
||||
* showrelatedcompetencies boolean
|
||||
* related
|
||||
* showrule boolean
|
||||
* rule
|
||||
* outcome
|
||||
* type
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"competency": {
|
||||
"id": 1,
|
||||
"shortname": "C1",
|
||||
"idnumber": "PATH",
|
||||
"description": "Can do something"
|
||||
},
|
||||
"framework": {
|
||||
"shortname": "F1"
|
||||
}
|
||||
}
|
||||
}}
|
||||
<div class='competency-heading'>
|
||||
<h4 id="competency_link_{{competency.id}}">{{{competency.shortname}}}
|
||||
<small>{{competency.idnumber}}</small>
|
||||
|
@ -16,12 +16,14 @@
|
||||
}}
|
||||
{{!
|
||||
Course competencies template.
|
||||
|
||||
For a full list of the context for this template see the course_competencies_page renderable.
|
||||
}}
|
||||
<div data-region="coursecompetenciespage">
|
||||
<div data-region="actions" class="clearfix">
|
||||
<div class="pull-left">
|
||||
<div class="pull-xs-left">
|
||||
{{#canmanagecoursecompetencies}}
|
||||
<button disabled>{{#str}}addcoursecompetencies, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary" disabled>{{#str}}addcoursecompetencies, tool_lp{{/str}}</button>
|
||||
{{/canmanagecoursecompetencies}}
|
||||
</div>
|
||||
</div>
|
||||
@ -55,12 +57,13 @@
|
||||
<tr class="drag-samenode" data-id="{{competency.id}}">
|
||||
<td>
|
||||
{{#canmanagecoursecompetencies}}
|
||||
<span class="drag-handlecontainer pull-left"></span>
|
||||
<div class="pull-right">
|
||||
<span class="drag-handlecontainer pull-xs-left"></span>
|
||||
<div class="pull-xs-right">
|
||||
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">
|
||||
{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{{/canmanagecoursecompetencies}}
|
||||
{{#competency}}
|
||||
<a href="{{pluginbaseurl}}user_competency_in_course.php?courseid={{courseid}}&competencyid={{competency.id}}&userid={{gradableuserid}}"
|
||||
@ -71,7 +74,7 @@
|
||||
<p>{{{competency.description}}}</p>
|
||||
{{/competency}}
|
||||
{{#comppath}}
|
||||
<span class="pull-left">{{#str}}path, tool_lp{{/str}} </span>{{> tool_lp/competency_path }}
|
||||
<span class="pull-xs-left">{{#str}}path, tool_lp{{/str}} </span>{{> tool_lp/competency_path }}
|
||||
{{/comppath}}
|
||||
{{#usercompetencycourse}}
|
||||
{{#grade}}
|
||||
@ -92,12 +95,12 @@
|
||||
{{/canmanagecoursecompetencies}}
|
||||
<div data-region="coursecompetencyactivities">
|
||||
<p>
|
||||
<ul class="inline">
|
||||
<ul class="inline list-inline">
|
||||
{{#coursemodules}}
|
||||
<li><a href="{{url}}"><img src="{{iconurl}}"> {{name}} </a></li>
|
||||
<li class="list-inline-item"><a href="{{url}}"><img src="{{iconurl}}"> {{name}} </a></li>
|
||||
{{/coursemodules}}
|
||||
{{^coursemodules}}
|
||||
<li><span class="alert">{{#str}}noactivities, tool_lp{{/str}}</span></li>
|
||||
<li class="list-inline-item"><span class="alert">{{#str}}noactivities, tool_lp{{/str}}</span></li>
|
||||
{{/coursemodules}}
|
||||
</ul>
|
||||
</p>
|
||||
|
@ -1,3 +1,40 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/course_competency_settings
|
||||
|
||||
Select an action to execute.
|
||||
|
||||
Classes required for JS:
|
||||
* none
|
||||
|
||||
Data attibutes required for JS:
|
||||
* none
|
||||
|
||||
Context variables required for this template:
|
||||
* courseid
|
||||
* pushratingstouserplans
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"pushratingstouserplans": false,
|
||||
"courseid": -1
|
||||
}
|
||||
}}
|
||||
<form data-region="coursecompetencysettings">
|
||||
<input type="hidden" name="courseid" value="{{courseid}}"/>
|
||||
<fieldset>
|
||||
@ -12,10 +49,9 @@
|
||||
</label>
|
||||
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<center>
|
||||
<input type="button" data-action="save" value="{{#str}}savechanges{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</center>
|
||||
<fieldset class="pull-xs-right">
|
||||
<input type="button" class="btn btn-primary" data-action="save" value="{{#str}}savechanges{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</fieldset>
|
||||
<div class="clearfix"></div>
|
||||
</form>
|
||||
|
@ -33,9 +33,15 @@
|
||||
Example context (json):
|
||||
{
|
||||
"competencycount": 4,
|
||||
"canbegradedincourse": true,
|
||||
"canmanagecoursecompetencies": true,
|
||||
"proficientcompetencycount": 3,
|
||||
"proficientcompetencypercentage": 75,
|
||||
"proficientcompetencypercentageformatted": 75.0
|
||||
"proficientcompetencypercentageformatted": 75.0,
|
||||
"leastproficientcount": 1,
|
||||
"leastproficient": [
|
||||
{ "id": 1, "shortname": "Comp 1", "idnumber": "C1" }
|
||||
]
|
||||
}
|
||||
|
||||
}}
|
||||
|
@ -46,7 +46,7 @@
|
||||
}}
|
||||
<div class="well well-small evidence" data-region="evidence" data-id="{{id}}">
|
||||
{{#candelete}}
|
||||
<div class="pull-right">
|
||||
<div class="pull-xs-right">
|
||||
<a href="#" data-action="delete-evidence">{{#pix}}t/delete{{/pix}}</a>
|
||||
</div>
|
||||
{{/candelete}}
|
||||
@ -57,7 +57,7 @@
|
||||
{{/actionuser}}
|
||||
<strong><time datetime="{{userdate}}">{{userdate}}</time></strong>
|
||||
{{#grade}}
|
||||
<p><span class="label">{{gradename}}</span></p>
|
||||
<p><span class="tag tag-info">{{gradename}}</span></p>
|
||||
{{/grade}}
|
||||
<p>{{description}}</p>
|
||||
{{#note}}
|
||||
|
@ -1,3 +1,48 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/linked_courses_summary
|
||||
|
||||
Moodle template for the list of linked courses to a competency
|
||||
|
||||
Classes required for JS:
|
||||
* none
|
||||
|
||||
Data attributes required for JS:
|
||||
* none
|
||||
|
||||
Context variables required for this template:
|
||||
* courses array
|
||||
* viewurl
|
||||
* fullname
|
||||
* shortname
|
||||
|
||||
Example context (json):
|
||||
{ "courses":
|
||||
[
|
||||
{
|
||||
"viewurl": "http://",
|
||||
"fullname": "Course 1",
|
||||
"shortname": "C1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}}
|
||||
|
||||
<p>
|
||||
{{#str}}coursesusingthiscompetency, tool_lp{{/str}}
|
||||
</p>
|
||||
|
@ -38,81 +38,88 @@
|
||||
{{/canmanage}}
|
||||
</h2>
|
||||
<div>{{{framework.description}}}</div>
|
||||
<h3>{{#str}}competencies, core_competency{{/str}}</h3>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<p>
|
||||
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button>{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
|
||||
</form>
|
||||
</p>
|
||||
<ul data-enhance="tree">
|
||||
{{> tool_lp/loading }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="span6 well">
|
||||
<h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
|
||||
<p data-region="competencyinfo">
|
||||
{{#str}}nocompetencyselected, tool_lp{{/str}}
|
||||
</p>
|
||||
{{#canmanage}}
|
||||
<div data-region="competencyactions">
|
||||
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} <span data-region="term"></span></button>
|
||||
<span data-region="competencyactionsmenu">
|
||||
<ul title="{{#str}}edit{{/str}}" class="competencyactionsmenu">
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#" data-action="edit">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="move">
|
||||
{{#pix}}t/move{{/pix}} {{#str}}movetonewparent, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="delete">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}delete{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="moveup">
|
||||
{{#pix}}t/up{{/pix}} {{#str}}moveup{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="movedown">
|
||||
{{#pix}}t/down{{/pix}} {{#str}}movedown{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="linkedcourses">
|
||||
{{#pix}}t/viewdetails{{/pix}} {{#str}}linkedcourses, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="relatedcompetencies">
|
||||
{{#pix}}t/add{{/pix}} {{#str}}addcrossreferencedcompetency, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-action="competencyrules">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}competencyrule, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<h3>{{#str}}competencies, core_competency{{/str}}</h3>
|
||||
<div class="row-fluid">
|
||||
<div class="span6 col-lg-6">
|
||||
<p>
|
||||
<form data-region="filtercompetencies" data-frameworkid="{{framework.id}}" class="form-inline">
|
||||
<div class="form-group">
|
||||
<label class="accesshide" for="filter{{uniqid}}">{{#str}}search, tool_lp{{/str}}</label>
|
||||
<input class="form-control" type="text" id="filter{{uniqid}}" placeholder="{{#str}}search, tool_lp{{/str}}" value="{{search}}">
|
||||
<button class="btn btn-secondary">{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</p>
|
||||
<ul data-enhance="tree" class="competency-tree">
|
||||
{{> tool_lp/loading }}
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{{/canmanage}}
|
||||
</div>
|
||||
|
||||
<div class="span6 card col-lg-6">
|
||||
<div class="card-block">
|
||||
<div class="card-title">
|
||||
<h4 data-region="selected-competency">{{#str}}selectedcompetency, tool_lp{{/str}}</h4>
|
||||
<span data-region="competencyactionsmenu" class="pull-xs-right">
|
||||
<ul title="{{#str}}edit{{/str}}" class="competencyactionsmenu">
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="edit">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="move">
|
||||
{{#pix}}t/move{{/pix}} {{#str}}movetonewparent, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="delete">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}delete{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="moveup">
|
||||
{{#pix}}t/up{{/pix}} {{#str}}moveup{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="movedown">
|
||||
{{#pix}}t/down{{/pix}} {{#str}}movedown{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="linkedcourses">
|
||||
{{#pix}}t/viewdetails{{/pix}} {{#str}}linkedcourses, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="relatedcompetencies">
|
||||
{{#pix}}t/add{{/pix}} {{#str}}addcrossreferencedcompetency, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="competencyrules">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}competencyrule, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
<p data-region="competencyinfo">
|
||||
{{#str}}nocompetencyselected, tool_lp{{/str}}
|
||||
</p>
|
||||
{{#canmanage}}
|
||||
<div data-region="competencyactions">
|
||||
<button class="btn btn-secondary" data-action="add">{{#pix}}t/add{{/pix}} <span data-region="term"></span></button>
|
||||
</div>
|
||||
{{/canmanage}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#js}}
|
||||
@ -131,4 +138,3 @@ require(['tool_lp/tree', 'tool_lp/competencytree', 'tool_lp/competencyactions',
|
||||
});
|
||||
{{/js}}
|
||||
|
||||
</div>
|
||||
|
@ -61,17 +61,17 @@
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/editcompetencyframework.php?id={{id}}&pagecontextid={{pagecontextid}}">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="duplicatecompetencyframework" href="#" data-frameworkid="{{id}}">
|
||||
{{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="deletecompetencyframework" href="#" data-frameworkid="{{id}}">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}delete{{/str}}
|
||||
</a>
|
||||
|
@ -63,27 +63,27 @@
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/edittemplate.php?id={{id}}&pagecontextid={{pagecontextid}}&return=templates">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="duplicatetemplate" data-templateid="{{id}}" href="#">
|
||||
{{#pix}}t/copy{{/pix}} {{#str}}duplicate{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/template_plans.php?id={{id}}&pagecontextid={{pagecontextid}}">
|
||||
{{#pix}}t/add{{/pix}} {{#str}}createlearningplans, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/template_cohorts.php?id={{id}}&pagecontextid={{pagecontextid}}">
|
||||
{{#pix}}t/add{{/pix}} {{#str}}addcohortstosync, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="deletetemplate" data-templateid="{{id}}" href="#">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}delete{{/str}}
|
||||
</a>
|
||||
|
@ -1,3 +1,33 @@
|
||||
<p class="alert alert-error">
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/no_frameworks_warning
|
||||
|
||||
No frameworks warning template.
|
||||
|
||||
Classes required for JS:
|
||||
None
|
||||
|
||||
Context variables required for this template:
|
||||
None
|
||||
Example context (json):
|
||||
{
|
||||
}
|
||||
}}
|
||||
<p class="alert alert-danger">
|
||||
{{#str}}nocompetencyframeworks, tool_lp{{/str}}
|
||||
</p>
|
||||
|
@ -28,11 +28,11 @@
|
||||
<div data-region="actions" class="clearfix">
|
||||
<div class="pull-left">
|
||||
<!-- Button to add competencies to the plan -->
|
||||
<button class="btn" data-action="add">{{#pix}}t/add{{/pix}} {{#str}}addcompetency, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary" data-action="add">{{#pix}}t/add{{/pix}} {{#str}}addcompetency, tool_lp{{/str}}</button>
|
||||
</div>
|
||||
</div>
|
||||
{{/plan.canbeedited}}
|
||||
<div data-region="plan-summary">
|
||||
<div data-region="plan-summary" class="m-t-1">
|
||||
{{{plan.description}}}
|
||||
<dl>
|
||||
<dt>{{#str}}status, tool_lp{{/str}}</dt>
|
||||
@ -103,12 +103,12 @@
|
||||
</div>
|
||||
{{#plan.commentarea}}
|
||||
{{#canpostorhascomments}}
|
||||
<div data-region="comments">
|
||||
<div data-region="comments" class="m-t-1">
|
||||
{{>tool_lp/comment_area}}
|
||||
</div>
|
||||
{{/canpostorhascomments}}
|
||||
{{/plan.commentarea}}
|
||||
<div data-region="plan-competencies">
|
||||
<div data-region="plan-competencies" class="m-t-1">
|
||||
<h3>{{#str}}learningplancompetencies, tool_lp{{/str}}</h3>
|
||||
<table class="generaltable fullwidth managecompetencies">
|
||||
<thead>
|
||||
@ -154,21 +154,21 @@
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
{{#usercompetency.isrequestreviewallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="request-review">{{#pix}}t/edit, core{{/pix}} {{#str}}requestreview, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/usercompetency.isrequestreviewallowed}}
|
||||
{{#usercompetency.iscancelreviewrequestallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="cancel-review-request">{{#pix}}t/edit, core{{/pix}} {{#str}}cancelreviewrequest, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/usercompetency.iscancelreviewrequestallowed}}
|
||||
{{#plan.canbeedited}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core{{/pix}} {{#str}}delete{{/str}}</a>
|
||||
</li>
|
||||
{{/plan.canbeedited}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="find-courses-link" data-id="{{competency.id}}">{{#pix}}t/preview, core{{/pix}} {{#str}}findcourses, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -71,7 +71,7 @@
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li {{^canbeedited}} class="disabled" {{/canbeedited}}>
|
||||
<li class="{{^canbeedited}} disabled {{/canbeedited}} dropdown-item">
|
||||
<a href="{{#canbeedited}}
|
||||
{{pluginbaseurl}}/editplan.php?id={{id}}&userid={{userid}}&return=plans
|
||||
{{/canbeedited}}
|
||||
@ -83,57 +83,57 @@
|
||||
</a>
|
||||
</li>
|
||||
{{#isreopenallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-reopen" href="#">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}reopenplan, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isreopenallowed}}
|
||||
{{#iscompleteallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-complete" href="#">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}completeplan, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
{{/iscompleteallowed}}
|
||||
{{#isrequestreviewallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-request-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}requestreview, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/isrequestreviewallowed}}
|
||||
{{#iscancelreviewrequestallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-cancel-review-request" href="#">{{#pix}}t/edit{{/pix}} {{#str}}cancelreviewrequest, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/iscancelreviewrequestallowed}}
|
||||
{{#isstartreviewallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-start-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}startreview, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/isstartreviewallowed}}
|
||||
{{#isstopreviewallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-stop-review" href="#">{{#pix}}t/edit{{/pix}} {{#str}}stopreview, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/isstopreviewallowed}}
|
||||
{{#isapproveallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-approve" href="#">{{#pix}}t/edit{{/pix}} {{#str}}planapprove, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/isapproveallowed}}
|
||||
{{#isunapproveallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-unapprove" href="#">{{#pix}}t/edit{{/pix}} {{#str}}planunapprove, tool_lp{{/str}}</a>
|
||||
</li>
|
||||
{{/isunapproveallowed}}
|
||||
{{#isunlinkallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-unlink" href="#">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}unlinkplantemplate, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isunlinkallowed}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="plan-delete" href="#">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}deletethisplan, tool_lp{{/str}}
|
||||
</a>
|
||||
|
@ -1,3 +1,51 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/related_competencies
|
||||
|
||||
List of related competencies.
|
||||
|
||||
Classes required for JS:
|
||||
* none
|
||||
|
||||
Data attributes required for JS:
|
||||
* none
|
||||
|
||||
Context variables required for this template:
|
||||
* showdeleterelatedaction boolean
|
||||
* relatedcompetencies array
|
||||
* id int
|
||||
* shortname string
|
||||
* idnumber string
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"showdeleterelatedaction": false,
|
||||
"relatedcompetencies":
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"shortname": "Competency",
|
||||
"idnumber": "C1"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
}}
|
||||
<div data-region="relatedcompetencies">
|
||||
<p>
|
||||
<strong>{{#str}}crossreferencedcompetencies, tool_lp{{/str}}:</strong>
|
||||
@ -6,7 +54,7 @@
|
||||
{{#relatedcompetencies}}
|
||||
<li>
|
||||
{{#showdeleterelatedaction}}
|
||||
<div class="pull-right">
|
||||
<div class="pull-xs-right">
|
||||
<a href="#" data-action="deleterelation" id="id-related-{{id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
|
||||
</div>
|
||||
{{/showdeleterelatedaction}}
|
||||
|
@ -15,6 +15,8 @@
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/scale_configuration_page
|
||||
|
||||
Set scale configuration for the competency framework.
|
||||
|
||||
Classes required for JS:
|
||||
@ -30,7 +32,7 @@
|
||||
{
|
||||
"scales": [
|
||||
{ "id": 1, "name": "Competent" },
|
||||
{ "id": 2, "name": "Not competent"}
|
||||
{ "id": 2, "name": "Not competent" }
|
||||
]
|
||||
}
|
||||
}}
|
||||
@ -56,7 +58,8 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div data-region="scale-buttons">
|
||||
<input type="button" data-action="close" value="{{#str}}closebuttontitle{{/str}}"/>
|
||||
<input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
<div data-region="scale-buttons" class="m-t-1 pull-xs-right">
|
||||
<input type="button" class="btn btn-secondary" data-action="close" value="{{#str}}closebuttontitle{{/str}}"/>
|
||||
<input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
@ -28,11 +28,11 @@
|
||||
{{#canmanagetemplatecompetencies}}
|
||||
<div data-region="actions" class="clearfix">
|
||||
<div class="pull-left">
|
||||
<button disabled>{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
|
||||
<button disabled class="btn btn-secondary">{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
|
||||
</div>
|
||||
</div>
|
||||
{{/canmanagetemplatecompetencies}}
|
||||
<h3>{{#str}}templatecompetencies, tool_lp{{/str}}</h3>
|
||||
<h3 class="m-t-1">{{#str}}templatecompetencies, tool_lp{{/str}}</h3>
|
||||
{{#statistics}}
|
||||
{{> tool_lp/template_statistics }}
|
||||
{{/statistics}}
|
||||
@ -44,7 +44,7 @@
|
||||
<div class="well">
|
||||
{{#canmanagetemplatecompetencies}}
|
||||
<span class="drag-handlecontainer pull-left"></span>
|
||||
<div class="pull-right">
|
||||
<div class="pull-xs-right">
|
||||
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
|
||||
</div>
|
||||
{{/canmanagetemplatecompetencies}}
|
||||
@ -53,9 +53,9 @@
|
||||
{{/competency}}
|
||||
<strong>{{#str}}linkedcourseslist, tool_lp{{/str}}</strong>
|
||||
{{#hascourses}}
|
||||
<ul class="inline">
|
||||
<ul class="inline list-inline">
|
||||
{{#linkedcourses}}
|
||||
<li><a href="{{viewurl}}?id={{id}}">{{{fullname}}} ({{{shortname}}})</a></li>
|
||||
<li class="list-inline-item"><a href="{{viewurl}}?id={{id}}">{{{fullname}}} ({{{shortname}}})</a></li>
|
||||
{{/linkedcourses}}
|
||||
</ul>
|
||||
{{/hascourses}}
|
||||
|
@ -45,7 +45,8 @@
|
||||
Template statistics template.
|
||||
}}
|
||||
{{#competencycount}}
|
||||
<div data-region="templatestatistics" class="well">
|
||||
<div data-region="templatestatistics" class="card">
|
||||
<div class="card-block">
|
||||
{{< tool_lp/progress_bar}}
|
||||
{{$progresstext}}
|
||||
{{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
|
||||
@ -89,5 +90,6 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/leastproficientcount}}
|
||||
</div>
|
||||
</div>
|
||||
{{/competencycount}}
|
||||
|
@ -1,4 +1,41 @@
|
||||
<div class="pull-right well">
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/user_competency_course_navigation
|
||||
|
||||
Show an auto-complete for jumping to competencies in a plan.
|
||||
|
||||
Context variables required for this template:
|
||||
* groupselector - HTML
|
||||
* hasusers
|
||||
* users - array
|
||||
* id
|
||||
* selected
|
||||
* fullname
|
||||
* hascompetencies
|
||||
* competencies - array
|
||||
* id
|
||||
* selected
|
||||
* shortname
|
||||
* idnumber
|
||||
|
||||
// No example context because the JS is connected to webservices
|
||||
}}
|
||||
<div class="pull-xs-right card card-block">
|
||||
<p>{{{groupselector}}}</p>
|
||||
<form class="user-competency-course-navigation">
|
||||
{{#hasusers}}
|
||||
|
@ -50,10 +50,10 @@
|
||||
- {{reviewer.fullname}}
|
||||
{{/isstatusinreview}}
|
||||
|
||||
{{#isrequestreviewallowed}}<button data-action="request-review">{{#str}}requestreview, tool_lp{{/str}}</button>{{/isrequestreviewallowed}}
|
||||
{{#iscancelreviewrequestallowed}}<button data-action="cancel-review-request">{{#str}}cancelreviewrequest, tool_lp{{/str}}</button>{{/iscancelreviewrequestallowed}}
|
||||
{{#isstartreviewallowed}}<button data-action="start-review">{{#str}}startreview, tool_lp{{/str}}</button>{{/isstartreviewallowed}}
|
||||
{{#isstopreviewallowed}}<button data-action="stop-review">{{#str}}stopreview, tool_lp{{/str}}</button>{{/isstopreviewallowed}}
|
||||
{{#isrequestreviewallowed}}<button class="btn btn-secondary" data-action="request-review">{{#str}}requestreview, tool_lp{{/str}}</button>{{/isrequestreviewallowed}}
|
||||
{{#iscancelreviewrequestallowed}}<button class="btn btn-secondary" data-action="cancel-review-request">{{#str}}cancelreviewrequest, tool_lp{{/str}}</button>{{/iscancelreviewrequestallowed}}
|
||||
{{#isstartreviewallowed}}<button class="btn btn-secondary" data-action="start-review">{{#str}}startreview, tool_lp{{/str}}</button>{{/isstartreviewallowed}}
|
||||
{{#isstopreviewallowed}}<button class="btn btn-secondary" data-action="stop-review">{{#str}}stopreview, tool_lp{{/str}}</button>{{/isstopreviewallowed}}
|
||||
</dd>
|
||||
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
|
||||
<dd>
|
||||
@ -64,7 +64,7 @@
|
||||
<dt>{{#str}}rating, tool_lp{{/str}}</dt>
|
||||
<dd>{{gradename}}
|
||||
{{#cangrade}}
|
||||
<button class="btn" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
{{/cangrade}}
|
||||
</dd>
|
||||
{{#js}}
|
||||
|
@ -47,12 +47,12 @@
|
||||
<dt>{{#str}}activities, tool_lp{{/str}}</dt>
|
||||
<dd data-region="coursecompetencyactivities">
|
||||
<p>
|
||||
<ul class="inline">
|
||||
<ul class="inline list-inline">
|
||||
{{#coursemodules}}
|
||||
<li><a href="{{url}}"><img src="{{iconurl}}"> {{name}} </a></li>
|
||||
<li class="list-inline-item"><a href="{{url}}"><img src="{{iconurl}}"> {{name}} </a></li>
|
||||
{{/coursemodules}}
|
||||
{{^coursemodules}}
|
||||
<li><span class="alert">{{#str}}noactivities, tool_lp{{/str}}</span></li>
|
||||
<li class="list-inline-item"><span class="alert">{{#str}}noactivities, tool_lp{{/str}}</span></li>
|
||||
{{/coursemodules}}
|
||||
</ul>
|
||||
</p>
|
||||
@ -75,7 +75,7 @@
|
||||
<dt>{{#str}}rating, tool_lp{{/str}}</dt>
|
||||
<dd>{{gradename}}
|
||||
{{#cangrade}}
|
||||
<button class="btn" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
{{/cangrade}}
|
||||
</dd>
|
||||
{{/usercompetencycourse}}
|
||||
|
@ -61,10 +61,10 @@
|
||||
- {{reviewer.fullname}}
|
||||
{{/isstatusinreview}}
|
||||
|
||||
{{#isrequestreviewallowed}}<button data-action="request-review">{{#str}}requestreview, tool_lp{{/str}}</button>{{/isrequestreviewallowed}}
|
||||
{{#iscancelreviewrequestallowed}}<button data-action="cancel-review-request">{{#str}}cancelreviewrequest, tool_lp{{/str}}</button>{{/iscancelreviewrequestallowed}}
|
||||
{{#isstartreviewallowed}}<button data-action="start-review">{{#str}}startreview, tool_lp{{/str}}</button>{{/isstartreviewallowed}}
|
||||
{{#isstopreviewallowed}}<button data-action="stop-review">{{#str}}stopreview, tool_lp{{/str}}</button>{{/isstopreviewallowed}}
|
||||
{{#isrequestreviewallowed}}<button class="btn btn-secondary" data-action="request-review">{{#str}}requestreview, tool_lp{{/str}}</button>{{/isrequestreviewallowed}}
|
||||
{{#iscancelreviewrequestallowed}}<button class="btn btn-secondary" data-action="cancel-review-request">{{#str}}cancelreviewrequest, tool_lp{{/str}}</button>{{/iscancelreviewrequestallowed}}
|
||||
{{#isstartreviewallowed}}<button class="btn btn-secondary" data-action="start-review">{{#str}}startreview, tool_lp{{/str}}</button>{{/isstartreviewallowed}}
|
||||
{{#isstopreviewallowed}}<button class="btn btn-secondary" data-action="stop-review">{{#str}}stopreview, tool_lp{{/str}}</button>{{/isstopreviewallowed}}
|
||||
</dd>
|
||||
<dt>{{#str}}proficient, tool_lp{{/str}}</dt>
|
||||
<dd>
|
||||
@ -75,7 +75,7 @@
|
||||
<dt>{{#str}}rating, tool_lp{{/str}}</dt>
|
||||
<dd>{{gradename}}
|
||||
{{#cangrade}}
|
||||
<button class="btn" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary" id="rate_{{uniqid}}">{{#str}}rate, tool_lp{{/str}}</button>
|
||||
{{/cangrade}}
|
||||
</dd>
|
||||
{{#js}}
|
||||
|
@ -90,24 +90,24 @@
|
||||
<li>
|
||||
<a href="#">{{#str}}edit{{/str}}</a><b class="caret"></b>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{pluginbaseurl}}/user_evidence_edit.php?id={{id}}&userid={{userid}}&return=list">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}editthisuserevidence, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
{{#userhasplan}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a href="#" data-action="link-competency">
|
||||
{{#pix}}t/add{{/pix}} {{#str}}linkcompetencies, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
{{/userhasplan}}
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="send-competencies-review" href="#">
|
||||
{{#pix}}t/edit{{/pix}} {{#str}}sendcompetenciestoreview, tool_lp{{/str}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="dropdown-item">
|
||||
<a data-action="user-evidence-delete" href="#">
|
||||
{{#pix}}t/delete{{/pix}} {{#str}}deletethisuserevidence, tool_lp{{/str}}
|
||||
</a>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<div data-region="actions" class="clearfix">
|
||||
<div class="pull-left">
|
||||
{{#userhasplan}}
|
||||
<button class="btn" data-action="link-competency">{{#pix}}t/add{{/pix}} {{#str}}linkcompetencies, tool_lp{{/str}}</button>
|
||||
<button class="btn btn-secondary m-b-1" data-action="link-competency">{{#pix}}t/add{{/pix}} {{#str}}linkcompetencies, tool_lp{{/str}}</button>
|
||||
{{/userhasplan}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1 +1 @@
|
||||
define(["jquery","core/ajax","core/log","core/notification","core/templates","core/config"],function(a,b,c,d,e,f){var g=function(b){e.render("tool_templatelibrary/search_results",{templates:b}).done(function(b,c){e.replaceNode(a('[data-region="searchresults"]'),b,c)}).fail(d.exception)},h=function(c){var e=a('[data-field="component"]').val(),f=a('[data-field="search"]').val();b.call([{methodname:"tool_templatelibrary_list_templates",args:{component:e,search:f,themename:c},done:g,fail:d.exception}],!0,!1)},i=null,j=function(a,b){null!==i&&window.clearTimeout(i),i=window.setTimeout(function(){a(),i=null},b)},k=function(){j(h.bind(this,f.theme),400)};return a('[data-region="list-templates"]').on("change",'[data-field="component"]',k),a('[data-region="list-templates"]').on("input",'[data-field="search"]',k),h(f.theme),{}});
|
||||
define(["jquery","core/ajax","core/log","core/notification","core/templates","core/config"],function(a,b,c,d,e,f){var g=function(b){e.render("tool_templatelibrary/search_results",{templates:b}).done(function(b,c){e.replaceNode(a('[data-region="searchresults"]'),b,c)}).fail(d.exception)},h=function(c){var e=a('[data-field="component"]').val(),f=a('[data-field="search"]').val();document.location.hash=f,b.call([{methodname:"tool_templatelibrary_list_templates",args:{component:e,search:f,themename:c},done:g,fail:d.exception}],!0,!1)},i=null,j=function(a,b){null!==i&&window.clearTimeout(i),i=window.setTimeout(function(){a(),i=null},b)},k=function(){j(h.bind(this,f.theme),400)};return a('[data-region="list-templates"]').on("change",'[data-field="component"]',k),a('[data-region="list-templates"]').on("input",'[data-field="search"]',k),a('[data-field="search"]').val(document.location.hash.replace("#","")),h(f.theme),{}});
|
@ -47,6 +47,8 @@ define(['jquery', 'core/ajax', 'core/log', 'core/notification', 'core/templates'
|
||||
var searchStr = $('[data-field="search"]').val();
|
||||
|
||||
// Trigger the search.
|
||||
document.location.hash = searchStr;
|
||||
|
||||
ajax.call([
|
||||
{methodname: 'tool_templatelibrary_list_templates',
|
||||
args: {component: componentStr, search: searchStr, themename: themename},
|
||||
@ -83,6 +85,7 @@ define(['jquery', 'core/ajax', 'core/log', 'core/notification', 'core/templates'
|
||||
$('[data-region="list-templates"]').on('change', '[data-field="component"]', changeHandler);
|
||||
$('[data-region="list-templates"]').on('input', '[data-field="search"]', changeHandler);
|
||||
|
||||
$('[data-field="search"]').val(document.location.hash.replace('#', ''));
|
||||
refreshSearch(config.theme);
|
||||
return {};
|
||||
});
|
||||
|
@ -2177,3 +2177,8 @@ $footer-link-color: $brand-primary !default;
|
||||
color: $body-color;
|
||||
}
|
||||
|
||||
.competency-tree {
|
||||
ul {
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
47
theme/boost/templates/tool_lp/progress_bar.mustache
Normal file
47
theme/boost/templates/tool_lp/progress_bar.mustache
Normal file
@ -0,0 +1,47 @@
|
||||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template tool_lp/progress_bar
|
||||
|
||||
Moodle progress bar template for tool_lp.
|
||||
|
||||
The purpose of this template is to render a progress bar with a brief description.
|
||||
|
||||
Classes required for JS:
|
||||
* none
|
||||
|
||||
Data attributes required for JS:
|
||||
* none
|
||||
|
||||
Context variables required for this template:
|
||||
* progresstextvalue A brief text that describes the progress bar.
|
||||
* percentagevalue The numeric value for the progress bar's percentage.
|
||||
* percentlabelvalue The progress bar's label that shows the percentage value.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"progresstextvalue": "Progress:",
|
||||
"percentagevalue": "50",
|
||||
"percentlabelvalue": "50.00 %"
|
||||
}
|
||||
|
||||
}}
|
||||
<div id="progress-{{uniqid}}">
|
||||
{{$progresstext}}{{progresstextvalue}}{{/progresstext}}
|
||||
</div>
|
||||
<progress class="progress" aria-describedby="progress-{{uniqid}}"
|
||||
value="{{$percentage}}{{percentagevalue}}{{/percentage}}" max="100"></progress>
|
Loading…
x
Reference in New Issue
Block a user