{{! 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 . }} {{! @template theme_adaptable/adaptable_admin_setting_tabs Example context (json): { "versioninfo": "Release 3.0.3, version 2020073104 on Moodle 3.9.4 (Build: 20210118)", "maturity": "Maturity info", "maturityalert": "info", "privacynote": "Privacy info", "versioncheck": "Not supported on this version of Moodle", "tabs": [ { "name": "tab1", "active": 0, "displayname": "Inactive tab1", "html": "

Tab 1 content

", "disabled": true }, { "name": "tab2", "active": 1, "displayname": "Active tab2", "html": "

Tab 2 content

" } ] } }} {{#maturity}}

{{versioninfo}}

{{{maturity}}}

{{{privacynote}}}
{{/maturity}} {{^maturity}}

{{versioninfo}}

{{privacynote}}} {{/maturity}} {{#versioncheck}}
{{{versioncheck}}}
{{/versioncheck}}
{{#tabs}}
{{{html}}}
{{/tabs}}
{{#js}} const disabledtabs = document.getElementsByClassName("tab-pane disabled"); disabledtabs.forEach(function(tab) { const settings = tab.querySelectorAll("input, select, textarea"); settings.forEach(function(setting) { setting.setAttribute("disabled", "disabled"); }); }); {{/js}}