Hallo Community ,
ich hab momentan das Problem das ich bei der Registrierung gern die Labels als Placeholder in den Inputfields hätte.
Dazu hab ich im boost/templates/core_form/element-text.mustache das Template um die Placeholder info erweitert jedoch gibt er mir hier immer nur element.name aus, was ja laut der Doku https://docs.moodle.org/dev/Templates nicht passieren dürfte.
Hat da jemand eine Idee an was das liegen könnte ?
{{< core_form/element-template }}
{{$element}}
<input type="text"
class="form-control form-control-lg {{#error}}form-control-danger{{/error}}"
name="{{element.name}}"
placeholder="{{#str}} element.name {{/str}}"
{{#element.frozen}}
readonly {{#element.hardfrozen}}disabled{{/element.hardfrozen}}
{{/element.frozen}}
id="{{element.id}}"
value="{{element.value}}"
size="{{element.size}}"
{{#error}}
autofocus aria-describedby="id_error_{{element.name}}"
{{/error}}
{{{element.attributes}}} >
{{/element}}
{{/ core_form/element-template }}
Vielen Dank und Gruß
Johannes