Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 30... Línea 30...
30
    * element.html - The raw html to display.
30
    * element.html - The raw html to display.
Línea 31... Línea 31...
31
 
31
 
32
    Example context (json):
32
    Example context (json):
33
    {
33
    {
-
 
34
        "label": "Example label",
34
        "label": "Example label",
35
        "element": {
-
 
36
            "html": "Example HTML",
-
 
37
            "staticlabel": true,
-
 
38
            "extraclasses": null,
-
 
39
            "name": "static_name",
-
 
40
            "id": "id_static",
-
 
41
            "wrapperid": "fitem_id_static",
-
 
42
            "iderror": "id_error_static"
35
        "element": { "html": "Example HTML", "staticlabel": true }
43
        }
36
    }
44
    }
37
}}
45
}}
38
{{< core_form/element-template }}
46
{{< core_form/element-template }}
39
    {{$element}}
47
    {{$element}}
40
        <div class="form-control-static {{{element.extraclasses}}}">
48
        <div class="form-control-static {{{element.extraclasses}}}" data-name="{{element.name}}">
41
        {{{element.html}}}
49
        {{{element.html}}}
42
        </div>
50
        </div>
43
    {{/element}}
51
    {{/element}}