mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-80746 core_course: fix group_selector rendering
This change: - Fixes the group_selector constructor, removing the unnecessarily deprecated param (this code is main-only, so no need to deprecate) and fixes all calling code. - moves the button and content into separate named_templatable renderables, cleaning up the group_selector code so that it only needs to make a single call to render and doesn't concern itself with contexts of other renderables.
This commit is contained in:
parent
8d1cdf6f8e
commit
c648839070
8 changed files with 151 additions and 45 deletions
|
@ -34,10 +34,10 @@
|
|||
<span class="d-none" data-region="groupid" data-groupid="{{group}}"></span>
|
||||
<div class="align-items-center d-flex">
|
||||
<div class="d-block pe-3 text-truncate">
|
||||
<span class="d-block small" aria-hidden="true">
|
||||
<label class="d-block m-0 small" aria-hidden="true">
|
||||
{{label}}
|
||||
</span>
|
||||
<span class="p-0 font-weight-bold">
|
||||
</label>
|
||||
<span class="p-0 font-weight-bold" data-selected-option>
|
||||
{{selectedgroup}}
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue