Skip to content

Commit

Permalink
MBS-7846: Improve activity selector (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg authored Aug 8, 2023
1 parent fd95d26 commit cc53a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/activityselector.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="card-text">{{#str}} activity, core {{/str}}
<select id="learningmap-activity-selector">
{{#sections}}
<option disabled title="{{name}}">-- {{#shortentext}} 30, {{{name}}} {{/shortentext}} --</option>
<optgroup label="{{#shortentext}} 30, {{{name}}} {{/shortentext}}">
{{#coursemodules}}
{{^completionenabled}}
<option value="{{id}}" disabled class="learningmap-disabled-activity" title="{{#str}} nocompletionenabled, learningmap {{/str}}">{{#shortentext}} 30, {{{name}}} {{/shortentext}}</option>
Expand All @@ -77,6 +77,7 @@
<option value="{{id}}" title="{{name}}" data-activity-hidden="{{hidden}}">{{#shortentext}} 30, {{{name}}} {{/shortentext}}</option>
{{/completionenabled}}
{{/coursemodules}}
</optgroup>
{{/sections}}
</select><br/>
<div class="alert alert-warning mt-3" hidden id="learningmap-activity-hidden-warning">{{#str}} hiddenactivitywarning, learningmap {{/str}}</div>
Expand Down

0 comments on commit cc53a9f

Please sign in to comment.