mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-81402-main' of https://github.com/sh-csg/moodle
This commit is contained in:
commit
6b7d9b5e8a
@ -122,6 +122,7 @@ class cm implements named_templatable, renderable {
|
||||
'classlist' => [],
|
||||
'cmid' => $mod->id,
|
||||
'editing' => $PAGE->user_is_editing(),
|
||||
'sectionnum' => $this->section->section,
|
||||
];
|
||||
|
||||
// Add partial data segments.
|
||||
|
@ -27,13 +27,13 @@
|
||||
Example context (json):
|
||||
{
|
||||
"id": 0,
|
||||
"num": 1,
|
||||
"sectionnum": 1,
|
||||
"sectionreturn": 5
|
||||
}
|
||||
}}
|
||||
<button class="btn add-content section-modchooser section-modchooser-link activitychooser-button d-flex justify-content-center align-items-center p-1 icon-no-margin"
|
||||
data-action="open-chooser"
|
||||
data-sectionid="{{num}}"
|
||||
data-sectionid="{{sectionnum}}"
|
||||
{{#sectionreturn}}data-sectionreturnid="{{.}}"{{/sectionreturn}}
|
||||
data-beforemod="{{id}}"
|
||||
aria-label="{{#str}}insertresourceoractivitybefore, core, { "activityname": {{#quote}} {{activityname}} {{/quote}} } {{/str}}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user