Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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 core_form/element-header
19
 
20
    Renders a form section header
21
 
22
    Example context (json):
23
    {
24
        "id": "id_general",
25
        "header": "General",
26
        "collapsed": 0,
27
        "collapseable": 1,
28
        "helpbutton": "Help"
29
    }
30
}}
31
{{#collapseable}}
32
    <legend class="d-flex align-items-center">
33
        <div class="position-relative d-flex ftoggler align-items-center w-100">
34
            <a data-toggle="collapse"
35
                href="#{{id}}container"
36
                role="button"
37
                aria-expanded="{{#collapsed}}false{{/collapsed}}{{^collapsed}}true{{/collapsed}}"
38
                aria-controls="{{id}}container"
39
                class="fheader {{#collapsed}}collapsed{{/collapsed}}"
40
                >
41
                <h3 class="d-flex align-self-stretch align-items-center mb-0" aria-hidden="true">
42
                    {{{header}}}
43
                </h3>
44
            </a>
45
            {{{helpbutton}}}
46
        </div>
47
 
48
    </legend>
49
{{/collapseable}}
50
{{^collapseable}}
51
    <legend>{{{header}}}</legend>
52
{{/collapseable}}
1257 ariadna 53
<div id="{{id}}container" class="fcontainer d-flex flex-wrap {{#collapseable}}collapseable collapse {{/collapseable}} {{^collapsed}}show{{/collapsed}}" style="gap:1rem;">