89cef395a79cfb6a1c5247808f0ee2e1db072f4f
[moodle.git] / report / competency / templates / user_course_navigation.mustache
1 <div class="pull-right well">
2 <p>{{{groupselector}}}</p>
3 <form class="user-competency-course-navigation">
4 {{#hasusers}}
5 <span>
6 <label for="user-nav-{{uniqid}}" class="accesshide">{{#str}}jumptouser, tool_lp{{/str}}</label>
7 <select id="user-nav-{{uniqid}}">
8 {{#users}}
9 <option value="{{id}}" {{#selected}}selected="selected"{{/selected}}>{{fullname}}</option>
10 {{/users}}
11 </select>
12 </span>
13 {{/hasusers}}
14 </form>
15 </div>
16 {{#js}}
17 require(['core/form-autocomplete', 'report_competency/user_course_navigation'], function(autocomplete, nav) {
18     (new nav('#user-nav-{{uniqid}}', '{{baseurl}}', {{userid}}, {{courseid}}));
19 {{#hasusers}}
20     autocomplete.enhance('#user-nav-{{uniqid}}', false, false, {{# quote }}{{# str }}jumptouser, tool_lp{{/ str }}{{/ quote }});
21 {{/hasusers}}
22 });
23 {{/js}}