AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.Moodle is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template aiplacement_courseassist/responseTemplate to display reponse content for AI placement.Context variables required for this template:* content - Content to display* heading - The heading to display* action - The action being performedExample context (json):{"content": "<p>Content to display</p>","heading": "AI Explain","action": "explain"}}}<section class="course-assist-response card mb-3" data-action-performed="{{action}}"><div class="card-body p-3"><h3 class="course-assist-response-header h5 card-title d-inline"><span class="ai-course-assist-sparkles-icon">{{#pix}} sparkles, aiplacement_courseassist {{/pix}}</span>{{heading}}</h3><div class="card-text content mt-3"><div id="course-assist-response-content-{{uniqid}}" class="course-assist-response-content mb-3">{{{content}}}</div><div class="course-assist-response-watermark"><small class="text-muted"><span class="ai-course-assist-sparkles-icon">{{#pix}} sparkles, aiplacement_courseassist {{/pix}}</span>{{#str}} contentwatermark, core_ai {{/str}}</small></div><div class="course-assist-controls d-block pt-3"><button class="btn btn-sm btn-outline-secondary" data-action="regenerate">{{#pix}} a/refresh, core {{/pix}}{{#str}} regenerate, aiplacement_courseassist {{/str}}</button><button class="btn btn-sm btn-outline-secondary" data-action="copytoclipboard" data-clipboard-target="#course-assist-response-content-{{uniqid}}">{{#pix}} e/copy, core {{/pix}}{{#str}} copy, aiplacement_courseassist {{/str}}</button></div></div></div></section>