| Línea 20... |
Línea 20... |
| 20 |
Course competencies template.
|
20 |
Course competencies template.
|
| Línea 21... |
Línea 21... |
| 21 |
|
21 |
|
| Línea 22... |
Línea 22... |
| 22 |
For a full list of the context for this template see the course_competencies_page renderable.
|
22 |
For a full list of the context for this template see the course_competencies_page renderable.
|
| - |
|
23 |
|
| - |
|
24 |
This template includes ajax functionality, so it cannot be shown in the template library.
|
| - |
|
25 |
|
| - |
|
26 |
Example context (json):
|
| - |
|
27 |
{
|
| - |
|
28 |
"canmanagecoursecompetencies": true,
|
| - |
|
29 |
"cangradecompetencies": true,
|
| - |
|
30 |
"settings": {
|
| - |
|
31 |
"pushratingstouserplans": true
|
| - |
|
32 |
},
|
| - |
|
33 |
"canconfigurecoursecompetencies": true,
|
| - |
|
34 |
"competencies": [{
|
| - |
|
35 |
"competency": {
|
| - |
|
36 |
"id": 2,
|
| - |
|
37 |
"shortname": "Competency1",
|
| - |
|
38 |
"idnumber": "COMP1",
|
| - |
|
39 |
"description": "Competency1 description"
|
| - |
|
40 |
},
|
| - |
|
41 |
"coursecompetency": {
|
| - |
|
42 |
"id": 1
|
| - |
|
43 |
},
|
| - |
|
44 |
"ruleoutcomeoptions": [{
|
| - |
|
45 |
"value": "1",
|
| - |
|
46 |
"text": "Mark as complete"
|
| - |
|
47 |
}, {
|
| - |
|
48 |
"value": "2",
|
| - |
|
49 |
"text": "Mark as complete and request review"
|
| - |
|
50 |
}]
|
| 23 |
|
51 |
}]
|
| 24 |
This template includes ajax functionality, so it cannot be shown in the template library.
|
52 |
}
|
| 25 |
}}
|
53 |
}}
|
| 26 |
<div data-region="coursecompetenciespage">
|
54 |
<div data-region="coursecompetenciespage">
|
| 27 |
<div data-region="actions" class="clearfix">
|
55 |
<div data-region="actions" class="clearfix">
|
| 28 |
<div class="float-sm-left">
|
56 |
<div class="float-sm-start">
|
| 29 |
{{#canmanagecoursecompetencies}}
|
57 |
{{#canmanagecoursecompetencies}}
|
| 30 |
<button class="btn btn-secondary" disabled>{{#str}}addcoursecompetencies, tool_lp{{/str}}</button>
|
58 |
<button class="btn btn-secondary" disabled>{{#str}}addcoursecompetencies, tool_lp{{/str}}</button>
|
| 31 |
{{/canmanagecoursecompetencies}}
|
59 |
{{/canmanagecoursecompetencies}}
|
| Línea 43... |
Línea 71... |
| 43 |
{{#canconfigurecoursecompetencies}}
|
71 |
{{#canconfigurecoursecompetencies}}
|
| 44 |
<a href="#"
|
72 |
<a href="#"
|
| 45 |
data-action="configure-course-competency-settings"
|
73 |
data-action="configure-course-competency-settings"
|
| 46 |
data-courseid="{{courseid}}"
|
74 |
data-courseid="{{courseid}}"
|
| 47 |
data-pushratingstouserplans="{{settings.pushratingstouserplans}}">
|
75 |
data-pushratingstouserplans="{{settings.pushratingstouserplans}}">
|
| 48 |
{{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}}
|
76 |
{{#pix}}i/settings, core, {{#str}}edit{{/str}}{{/pix}}
|
| 49 |
</a>
|
77 |
</a>
|
| 50 |
{{/canconfigurecoursecompetencies}}
|
78 |
{{/canconfigurecoursecompetencies}}
|
| 51 |
</p>
|
79 |
</p>
|
| 52 |
{{/cangradecompetencies}}
|
80 |
{{/cangradecompetencies}}
|
| 53 |
</div>
|
81 |
</div>
|
| Línea 59... |
Línea 87... |
| 59 |
<tbody class="drag-parentnode">
|
87 |
<tbody class="drag-parentnode">
|
| 60 |
{{#competencies}}
|
88 |
{{#competencies}}
|
| 61 |
<tr class="drag-samenode" data-id="{{competency.id}}">
|
89 |
<tr class="drag-samenode" data-id="{{competency.id}}">
|
| 62 |
<td>
|
90 |
<td>
|
| 63 |
{{#canmanagecoursecompetencies}}
|
91 |
{{#canmanagecoursecompetencies}}
|
| 64 |
<span class="drag-handlecontainer float-sm-left"></span>
|
92 |
<span class="drag-handlecontainer float-sm-start"></span>
|
| 65 |
<div class="float-sm-right">
|
93 |
<div class="float-sm-end">
|
| 66 |
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">
|
94 |
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">
|
| 67 |
{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}
|
95 |
{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}
|
| 68 |
</a>
|
96 |
</a>
|
| 69 |
</div>
|
97 |
</div>
|
| 70 |
<div class="clearfix"></div>
|
98 |
<div class="clearfix"></div>
|
| Línea 76... |
Línea 104... |
| 76 |
<p><strong>{{{competency.shortname}}} <em>{{competency.idnumber}}</em></strong></p>
|
104 |
<p><strong>{{{competency.shortname}}} <em>{{competency.idnumber}}</em></strong></p>
|
| 77 |
</a>
|
105 |
</a>
|
| 78 |
<p>{{{competency.description}}}</p>
|
106 |
<p>{{{competency.description}}}</p>
|
| 79 |
{{/competency}}
|
107 |
{{/competency}}
|
| 80 |
{{#comppath}}
|
108 |
{{#comppath}}
|
| 81 |
<span class="float-sm-left">{{#str}}path, tool_lp{{/str}} </span>{{> tool_lp/competency_path }}
|
109 |
<span class="float-sm-start">{{#str}}path, tool_lp{{/str}} </span>{{> tool_lp/competency_path }}
|
| 82 |
{{/comppath}}
|
110 |
{{/comppath}}
|
| 83 |
{{#usercompetencycourse}}
|
111 |
{{#usercompetencycourse}}
|
| 84 |
{{#grade}}
|
112 |
{{#grade}}
|
| 85 |
<span class="badge {{#proficiency}}bg-success{{/proficiency}}{{^proficiency}}bg-danger{{/proficiency}} text-white">{{gradename}}</span>
|
113 |
<span class="badge {{#proficiency}}bg-success{{/proficiency}}{{^proficiency}}bg-danger{{/proficiency}} text-white">{{gradename}}</span>
|
| 86 |
{{/grade}}
|
114 |
{{/grade}}
|
| 87 |
{{/usercompetencycourse}}
|
115 |
{{/usercompetencycourse}}
|
| 88 |
{{#canmanagecoursecompetencies}}
|
116 |
{{#canmanagecoursecompetencies}}
|
| 89 |
<div data-region="coursecompetency-ruleoutcome">
|
117 |
<div data-region="coursecompetency-ruleoutcome">
|
| 90 |
<label>
|
118 |
<label>
|
| 91 |
{{#str}}uponcoursecompletion, tool_lp{{/str}}
|
119 |
{{#str}}uponcoursecompletion, tool_lp{{/str}}
|
| 92 |
<select data-field="ruleoutcome" data-id="{{coursecompetency.id}}" class="custom-select">
|
120 |
<select data-field="ruleoutcome" data-id="{{coursecompetency.id}}" class="form-select">
|
| 93 |
{{#ruleoutcomeoptions}}
|
121 |
{{#ruleoutcomeoptions}}
|
| 94 |
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{text}}</option>
|
122 |
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{text}}</option>
|
| 95 |
{{/ruleoutcomeoptions}}
|
123 |
{{/ruleoutcomeoptions}}
|
| 96 |
</select>
|
124 |
</select>
|
| 97 |
</label>
|
125 |
</label>
|