MDL-64506 templates: Move BS2 btns' to BS4 btns'
[moodle.git] / report / competency / templates / user_course_navigation.mustache
CommitLineData
29551c4b 1<div class="pull-right card">
a8007119
DW
2<p>{{{groupselector}}}</p>
3<form class="user-competency-course-navigation">
21e0dd61
DW
4{{#hasusers}}
5<span>
60011d9a 6<label for="user-nav-{{uniqid}}" class="accesshide">{{#str}}jumptouser, tool_lp{{/str}}</label>
21e0dd61
DW
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>
a8007119 15</div>
21e0dd61
DW
16{{#js}}
17require(['core/form-autocomplete', 'report_competency/user_course_navigation'], function(autocomplete, nav) {
e55151b2 18 (new nav('#user-nav-{{uniqid}}', '{{baseurl}}', {{userid}}, {{courseid}}));
21e0dd61 19{{#hasusers}}
60011d9a 20 autocomplete.enhance('#user-nav-{{uniqid}}', false, false, {{# quote }}{{# str }}jumptouser, tool_lp{{/ str }}{{/ quote }});
21e0dd61 21{{/hasusers}}
21e0dd61
DW
22});
23{{/js}}