MDL-81402 course: Add sectionnum to cm export
This commit is contained in:
@@ -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,11 +27,11 @@
|
||||
Example context (json):
|
||||
{
|
||||
"id": 0,
|
||||
"num": 1,
|
||||
"sectionnum": 1,
|
||||
"sectionreturn": 5
|
||||
}
|
||||
}}
|
||||
<button class="btn btn-link text-decoration-none section-modchooser section-modchooser-link activity-add d-flex align-items-center activitychooser-button"
|
||||
data-action="open-chooser" data-sectionid="{{num}}" data-sectionreturnid="{{sectionreturn}}" data-beforemod="{{id}}" aria-label="{{#str}}insertresourceoractivitybefore, core, { "activityname": {{#quote}} {{activityname}} {{/quote}} } {{/str}}" tabindex="0">
|
||||
data-action="open-chooser" data-sectionid="{{sectionnum}}" data-sectionreturnid="{{sectionreturn}}" data-beforemod="{{id}}" aria-label="{{#str}}insertresourceoractivitybefore, core, { "activityname": {{#quote}} {{activityname}} {{/quote}} } {{/str}}" tabindex="0">
|
||||
{{#pix}} t/add, core {{/pix}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user