moodle/lib/form/templates/element-text-inline.mustache

18 lines
652 B
Plaintext

{{< core_form/element-template-inline }}
{{$element}}
<input type="text"
class="form-control {{#error}}is-invalid{{/error}}"
name="{{element.name}}"
id="{{element.id}}"
{{#element.frozen}}
readonly {{#element.hardfrozen}}disabled{{/element.hardfrozen}}
{{/element.frozen}}
value="{{element.value}}"
{{#element.size}}size="{{element.size}}"{{/element.size}}
{{#error}}
autofocus aria-describedby="{{element.iderror}}"
{{/error}}
{{{element.attributes}}}>
{{/element}}
{{/ core_form/element-template-inline }}