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 modify
it under the terms of the GNU General Public License as published by
the 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 of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_form/element-header
Renders a form section header
Example context (json):
{
"id": "id_general",
"header": "General",
"collapsed": 0,
"collapseable": 1,
"helpbutton": "Help"
}
}}
{{#collapseable}}
<legend class="d-flex align-items-center">
<div class="position-relative d-flex ftoggler align-items-center w-100">
<a data-toggle="collapse"
href="#{{id}}container"
role="button"
aria-expanded="{{#collapsed}}false{{/collapsed}}{{^collapsed}}true{{/collapsed}}"
aria-controls="{{id}}container"
class="fheader {{#collapsed}}collapsed{{/collapsed}}"
>
<h3 class="d-flex align-self-stretch align-items-center mb-0" aria-hidden="true">
{{{header}}}
</h3>
</a>
{{{helpbutton}}}
</div>
</legend>
{{/collapseable}}
{{^collapseable}}
<legend>{{{header}}}</legend>
{{/collapseable}}
<div id="{{id}}container" class="fcontainer {{#collapseable}}collapseable collapse {{/collapseable}} {{^collapsed}}show{{/collapsed}}">