mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-60494 mod_lti: Invalid </img>, example context
<img> was followed by an invalid </img>. Also added example context for template so it passes CI checks.
This commit is contained in:
parent
44ffa8a801
commit
287e8f16e6
1 changed files with 31 additions and 2 deletions
|
@ -27,14 +27,16 @@
|
||||||
* none
|
* none
|
||||||
|
|
||||||
Context variables required for this template:
|
Context variables required for this template:
|
||||||
|
* id
|
||||||
* hascapabilitygroups
|
* hascapabilitygroups
|
||||||
* state
|
* state
|
||||||
** pending|configured|rejected|unknown
|
** pending|configured|rejected|unknown
|
||||||
** text
|
** text
|
||||||
* courseid
|
* courseid
|
||||||
* urls
|
* urls
|
||||||
** course
|
** course - optional, required if courseid > 0
|
||||||
** icon
|
** icon
|
||||||
|
** edit
|
||||||
** publickeyset
|
** publickeyset
|
||||||
** accesstoken
|
** accesstoken
|
||||||
** authrequest
|
** authrequest
|
||||||
|
@ -45,6 +47,33 @@
|
||||||
* deploymentid
|
* deploymentid
|
||||||
* instancecount
|
* instancecount
|
||||||
|
|
||||||
|
Example context (json):
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "Example Tool",
|
||||||
|
"description": "This is an example tool",
|
||||||
|
"platformid": "https:\/\/moodle.example.com",
|
||||||
|
"courseid": 0,
|
||||||
|
"hascapabilitygroups": false,
|
||||||
|
"state": {
|
||||||
|
"text": "Active",
|
||||||
|
"pending": false,
|
||||||
|
"configured": true,
|
||||||
|
"rejected": false,
|
||||||
|
"unknown": false
|
||||||
|
},
|
||||||
|
"urls": {
|
||||||
|
"icon": "https://www.example.com/icon1.png",
|
||||||
|
"edit": "https://www.example.com/mod/lti/typessettings.php",
|
||||||
|
"publickeyset": "https:\/\/moodle.example.com\/mod\/lti\/certs.php",
|
||||||
|
"accesstoken": "https:\/\/moodle.example.com\/mod\/lti\/token.php",
|
||||||
|
"authrequest": "https:\/\/moodle.example.com\/mod\/lti\/auth.php"
|
||||||
|
},
|
||||||
|
"clientid": null,
|
||||||
|
"deploymentid": 1,
|
||||||
|
"instancecount": 0
|
||||||
|
}
|
||||||
|
|
||||||
}}
|
}}
|
||||||
<div class="tool-card" data-type-id="{{id}}" data-uniqid="{{uniqid}}"
|
<div class="tool-card" data-type-id="{{id}}" data-uniqid="{{uniqid}}"
|
||||||
data-modaltitle="{{#str}} tooldetailsmodaltitle, mod_lti {{/str}}"
|
data-modaltitle="{{#str}} tooldetailsmodaltitle, mod_lti {{/str}}"
|
||||||
|
@ -88,7 +117,7 @@
|
||||||
<a class="delete" href="#" title="{{#str}} delete {{/str}}">{{#pix}} t/delete, core, {{#str}} delete {{/str}}{{/pix}}</a>
|
<a class="delete" href="#" title="{{#str}} delete {{/str}}">{{#pix}} t/delete, core, {{#str}} delete {{/str}}{{/pix}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img class="tool-card-icon" src="{{{urls.icon}}}" alt="{{name}}"></img>
|
<img class="tool-card-icon" src="{{{urls.icon}}}" alt="{{name}}">
|
||||||
<div class="contenteditable-container">
|
<div class="contenteditable-container">
|
||||||
<h4 class="name" contenteditable="true">{{name}}</h4>
|
<h4 class="name" contenteditable="true">{{name}}</h4>
|
||||||
<div class="overlay-container">{{> mod_lti/loader }}</div>
|
<div class="overlay-container">{{> mod_lti/loader }}</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue