MDL-66543 forms: Make (hard) frozen textareas readonly (or disabled)

This commit is contained in:
Tobias Reischmann 2019-08-28 15:12:40 +02:00
parent 9f997f9bd7
commit 556c4f3309

View File

@ -1,6 +1,5 @@
{{< core_form/element-template }}
{{$element}}
{{^element.frozen}}
<textarea
name="{{element.name}}"
id="{{element.id}}"
@ -8,10 +7,10 @@
{{#error}}
autofocus aria-describedby="{{element.iderror}}"
{{/error}}
{{{element.attributes}}} >{{element.value}}</textarea>
{{/element.frozen}}
{{#element.frozen}}
{{element.value}}
{{/element.frozen}}
{{{element.attributes}}}
{{#element.frozen}}
readonly {{#element.hardfrozen}}disabled{{/element.hardfrozen}}
{{/element.frozen}}
>{{element.value}}</textarea>
{{/element}}
{{/ core_form/element-template }}