From a272c2289f5973aa76cfc0fd2d97ac7b0b7e368e Mon Sep 17 00:00:00 2001 From: Jeremy Schulz Date: Mon, 20 Nov 2023 15:33:24 +0100 Subject: [PATCH] MDL-80180 admin: added readonly support for multicheckbox --- admin/templates/setting_configmulticheckbox.mustache | 7 +++++-- lib/adminlib.php | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/templates/setting_configmulticheckbox.mustache b/admin/templates/setting_configmulticheckbox.mustache index 951929ac7fc..a14172ea664 100644 --- a/admin/templates/setting_configmulticheckbox.mustache +++ b/admin/templates/setting_configmulticheckbox.mustache @@ -23,12 +23,15 @@ * name - form element name * hasoptions - there are some options * options - list of options containing name, key, id, checked, label + * readonly - bool Example context (json): { "name": "test", "hasoptions": true, - "options": [ { "name": "Option", "key": "k1", "id": "id0", "checked": true, "label": "Option label"} ] + "options": [ { "name": "Option", "key": "k1", "id": "id0", "checked": true, "label": "Option label"} ], + "readonly": false + } }}
@@ -37,7 +40,7 @@