moodle/lib/form/templates/element-url.mustache

27 lines
1.0 KiB
Plaintext

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