From 556c4f3309f6bd2b1bb44c83e167fd54b8a902f5 Mon Sep 17 00:00:00 2001 From: Tobias Reischmann Date: Wed, 28 Aug 2019 15:12:40 +0200 Subject: [PATCH] MDL-66543 forms: Make (hard) frozen textareas readonly (or disabled) --- lib/form/templates/element-textarea.mustache | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/form/templates/element-textarea.mustache b/lib/form/templates/element-textarea.mustache index 7b7750ef637..41eb2b40056 100644 --- a/lib/form/templates/element-textarea.mustache +++ b/lib/form/templates/element-textarea.mustache @@ -1,6 +1,5 @@ {{< core_form/element-template }} {{$element}} - {{^element.frozen}} - {{/element.frozen}} - {{#element.frozen}} - {{element.value}} - {{/element.frozen}} + {{{element.attributes}}} + {{#element.frozen}} + readonly {{#element.hardfrozen}}disabled{{/element.hardfrozen}} + {{/element.frozen}} + >{{element.value}} {{/element}} {{/ core_form/element-template }}