2023-10-24 21:55:53 +02:00
|
|
|
{{< core_form/element-template }}
|
|
|
|
{{$element}}
|
|
|
|
<input type="text"
|
|
|
|
class="form-control {{#error}}is-invalid{{/error}}"
|
|
|
|
name="{{element.name}}"
|
|
|
|
{{#element.frozen}}
|
|
|
|
readonly {{#element.hardfrozen}}disabled{{/element.hardfrozen}}
|
|
|
|
{{/element.frozen}}
|
|
|
|
id="{{element.id}}"
|
|
|
|
value="{{element.value}}"
|
|
|
|
{{#element.size}}size="{{element.size}}"{{/element.size}}
|
|
|
|
{{#error}}
|
|
|
|
autofocus aria-describedby="{{element.iderror}}"
|
|
|
|
{{/error}}
|
|
|
|
{{{element.attributes}}} >
|
|
|
|
{{/element}}
|
|
|
|
{{/ core_form/element-template }}
|
|
|
|
{{#js}}
|
|
|
|
require(['local_treestudyplan/util/formfields'], function(formfields) {
|
2023-11-05 15:49:32 +01:00
|
|
|
formfields.text_integer({{#quote}}{{element.id}}{{/quote}},{{unsigned}},{{nonzero}});
|
2023-10-24 21:55:53 +02:00
|
|
|
});
|
|
|
|
{{/js}}
|