diff --git a/theme/boost/templates/admin_setting_tabs.mustache b/theme/boost/templates/admin_setting_tabs.mustache
index 4d369b8fbdb..e1db0f29435 100644
--- a/theme/boost/templates/admin_setting_tabs.mustache
+++ b/theme/boost/templates/admin_setting_tabs.mustache
@@ -14,7 +14,29 @@
You should have received a copy of the GNU General Public License
along with Moodle. If not, see .
}}
-
+{{!
+ @template theme_boost/admin_setting_tabs
+
+
+ Example context (json):
+ {
+ "tabs": [
+ {
+ "name": "tab1",
+ "active": 0,
+ "displayname": "Inactive tab1",
+ "html": "Tab 1 content
"
+ },
+ {
+ "name": "tab2",
+ "active": 1,
+ "displayname": "Active tab2",
+ "html": "Tab 2 content
"
+ }
+ ]
+ }
+}}
+
{{#tabs}}
-
{{displayname}}
diff --git a/theme/bootstrapbase/templates/theme_boost/admin_setting_tabs.mustache b/theme/bootstrapbase/templates/theme_boost/admin_setting_tabs.mustache
index ba6240c4b5d..56593022d9d 100644
--- a/theme/bootstrapbase/templates/theme_boost/admin_setting_tabs.mustache
+++ b/theme/bootstrapbase/templates/theme_boost/admin_setting_tabs.mustache
@@ -14,7 +14,29 @@
You should have received a copy of the GNU General Public License
along with Moodle. If not, see .
}}
-
+{{!
+ @template theme_boost/admin_setting_tabs
+
+
+ Example context (json):
+ {
+ "tabs": [
+ {
+ "name": "tab1",
+ "active": 0,
+ "displayname": "Inactive tab1",
+ "html": "Tab 1 content
"
+ },
+ {
+ "name": "tab2",
+ "active": 1,
+ "displayname": "Active tab2",
+ "html": "Tab 2 content
"
+ }
+ ]
+ }
+}}
+