Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
4
    Moodle is free software: you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8
 
9
    Moodle is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13
 
14
    You should have received a copy of the GNU General Public License
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
17
{{!
18
    @template aiplacement_courseassist/response
19
 
20
    Template to display reponse content for AI placement.
21
 
22
    Context variables required for this template:
23
    * content - Content to display
24
    * heading - The heading to display
25
    * action - The action being performed
26
 
27
    Example context (json):
28
    {
29
        "content": "<p>Content to display</p>",
30
        "heading": "AI Explain",
31
        "action": "explain"
32
    }
33
}}
34
<section class="course-assist-response card mb-3" data-action-performed="{{action}}">
35
    <div class="card-body p-3">
36
        <h3 class="course-assist-response-header h5 card-title d-inline">
37
            <span class="ai-course-assist-sparkles-icon">
38
                {{#pix}} sparkles, aiplacement_courseassist {{/pix}}
39
            </span>
40
            {{heading}}
41
        </h3>
42
        <div class="card-text content mt-3">
43
            <div id="course-assist-response-content-{{uniqid}}" class="course-assist-response-content mb-3">
44
                {{{content}}}
45
            </div>
46
            <div class="course-assist-response-watermark">
47
                <small class="text-muted">
48
                    <span class="ai-course-assist-sparkles-icon">
49
                        {{#pix}} sparkles, aiplacement_courseassist {{/pix}}
50
                    </span>
51
                    {{#str}} contentwatermark, core_ai {{/str}}
52
                </small>
53
            </div>
54
            <div class="course-assist-controls d-block pt-3">
55
                <button class="btn btn-sm btn-outline-secondary" data-action="regenerate">
56
                    {{#pix}} a/refresh, core {{/pix}}
57
                    {{#str}} regenerate, aiplacement_courseassist {{/str}}
58
                </button>
59
                <button class="btn btn-sm btn-outline-secondary" data-action="copytoclipboard" data-clipboard-target="#course-assist-response-content-{{uniqid}}">
60
                    {{#pix}} e/copy, core {{/pix}}
61
                    {{#str}} copy, aiplacement_courseassist {{/str}}
62
                </button>
63
            </div>
64
        </div>
65
    </div>
66
</section>