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 tool_generator/stepsinformation
19
 
20
    Template with the available steps for the generator tool.
21
 
22
    Example context (json):
23
    {
24
        "steps": [
25
            {
26
                "given": "I do something with <strong>:param</strong>",
27
                "example": "example code"
28
            },
29
            {
30
                "given": "I do another thing with <strong>:param</strong>"
31
            }
32
        ]
33
    }
34
}}
35
<div class="border rounded border-info mb-3 p-2" id="stepsinformation">
36
    {{< core/showmore }}
37
        {{$collapsedcontent}}
38
            {{#str}} testscenario_filedesc, tool_generator {{/str}}
39
        {{/collapsedcontent}}
40
        {{$expandedcontent}}
41
            <p>{{#str}} testscenario_filedesc, tool_generator {{/str}}</p>
42
            <p>{{#str}} testscenario_filedesc_cleanup, tool_generator {{/str}}</p>
43
            <p>{{#str}} testscenario_filedesc_list, tool_generator {{/str}}</p>
44
            <ul class="list-group">
45
                {{#steps}}
46
                <li class="list-group-item">
47
                    {{{given}}}
48
                    {{#example}}
49
                    <div class="alert alert-info mb-0 mt-2" role="alert" style="overflow: auto;">
50
                        <div class="fw-bold me-2 ">{{#str}} step_example, tool_generator {{/str}}</div>
51
                        <pre class="mb-0">{{example}}</pre>
52
                    </div>
53
                    {{/example}}
54
                </li>
55
                {{/steps}}
56
            </ul>
57
        {{/expandedcontent}}
58
    {{/core/showmore }}
59
</div>