Merge branch 'MDL-53917-master' of git://github.com/junpataleta/moodle
[moodle.git] / admin / tool / lp / templates / course_competencies_page.mustache
index fd5f7d3..0a65312 100644 (file)
             {{/canmanagecoursecompetencies}}
         </div>
     </div>
-<div data-region="configurecoursecompetencies">
-{{#settings.pushratingstouserplans}}
-    <p class="alert">
-    {{#str}}coursecompetencyratingsarepushedtouserplans, tool_lp{{/str}}
-{{/settings.pushratingstouserplans}}
-{{^settings.pushratingstouserplans}}
-    <p class="alert alert-info">
-    {{#str}}coursecompetencyratingsarenotpushedtouserplans, tool_lp{{/str}}
-{{/settings.pushratingstouserplans}}
-{{#canconfigurecoursecompetencies}}
-    <a href="#"
-        data-action="configure-course-competency-settings"
-        data-courseid="{{courseid}}"
-        data-pushratingstouserplans="{{settings.pushratingstouserplans}}"
-        >{{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}}</a>
-    </p>
-{{/canconfigurecoursecompetencies}}
-</div>
+    <div data-region="configurecoursecompetencies">
+    {{#cangradecompetencies}}
+        <p class="alert {{^settings.pushratingstouserplans}}alert-info{{/settings.pushratingstouserplans}}">
+        {{#settings.pushratingstouserplans}}
+            {{#str}}coursecompetencyratingsarepushedtouserplans, tool_lp{{/str}}
+        {{/settings.pushratingstouserplans}}
+        {{^settings.pushratingstouserplans}}
+            {{#str}}coursecompetencyratingsarenotpushedtouserplans, tool_lp{{/str}}
+        {{/settings.pushratingstouserplans}}
+        {{#canconfigurecoursecompetencies}}
+            <a href="#"
+               data-action="configure-course-competency-settings"
+               data-courseid="{{courseid}}"
+               data-pushratingstouserplans="{{settings.pushratingstouserplans}}">
+                {{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}}
+            </a>
+        {{/canconfigurecoursecompetencies}}
+        </p>
+    {{/cangradecompetencies}}
+    </div>
 {{#statistics}}
 {{> tool_lp/course_competency_statistics }}
 {{/statistics}}