2016-02-09 14:59:23 +08:00
|
|
|
<div class="pull-right well">
|
|
|
|
<p>{{{groupselector}}}</p>
|
|
|
|
<form class="user-competency-course-navigation">
|
2016-01-28 16:03:41 +08:00
|
|
|
{{#hasusers}}
|
|
|
|
<span>
|
2016-05-02 16:52:21 +08:00
|
|
|
<label for="user-nav-{{uniqid}}" class="accesshide">{{#str}}jumptouser, tool_lp{{/str}}</label>
|
2016-01-28 16:03:41 +08:00
|
|
|
<select id="user-nav-{{uniqid}}">
|
|
|
|
{{#users}}
|
|
|
|
<option value="{{id}}" {{#selected}}selected="selected"{{/selected}}>{{fullname}}</option>
|
|
|
|
{{/users}}
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
{{/hasusers}}
|
|
|
|
</form>
|
2016-02-09 14:59:23 +08:00
|
|
|
</div>
|
2016-01-28 16:03:41 +08:00
|
|
|
{{#js}}
|
|
|
|
require(['core/form-autocomplete', 'report_competency/user_course_navigation'], function(autocomplete, nav) {
|
2016-04-14 13:56:14 -04:00
|
|
|
(new nav('#user-nav-{{uniqid}}', '{{baseurl}}', {{userid}}, {{courseid}}));
|
2016-01-28 16:03:41 +08:00
|
|
|
{{#hasusers}}
|
2016-05-02 16:52:21 +08:00
|
|
|
autocomplete.enhance('#user-nav-{{uniqid}}', false, false, {{# quote }}{{# str }}jumptouser, tool_lp{{/ str }}{{/ quote }});
|
2016-01-28 16:03:41 +08:00
|
|
|
{{/hasusers}}
|
|
|
|
});
|
|
|
|
{{/js}}
|