fixes #1173: removes double escapes form input twig macro
This commit is contained in:
parent
af2ac1bc3e
commit
cffc9854f8
|
@ -46,7 +46,7 @@ Renders an input field wrapped in a DIV with mb-3.
|
||||||
<input
|
<input
|
||||||
type="{{ opt.type|default('text') }}" class="form-control"
|
type="{{ opt.type|default('text') }}" class="form-control"
|
||||||
id="{{ name }}" name="{{ name }}"
|
id="{{ name }}" name="{{ name }}"
|
||||||
value="{{ opt.value|default('')|escape('html_attr') }}"
|
value="{{ opt.value|default('') }}"
|
||||||
{%- if opt.min_length is defined %} minlength="{{ opt.min_length }}"{% endif %}
|
{%- if opt.min_length is defined %} minlength="{{ opt.min_length }}"{% endif %}
|
||||||
{%- if opt.max_length is defined %} maxlength="{{ opt.max_length }}"{% endif %}
|
{%- if opt.max_length is defined %} maxlength="{{ opt.max_length }}"{% endif %}
|
||||||
{%- if opt.min is defined %} min="{{ opt.min }}"{% endif %}
|
{%- if opt.min is defined %} min="{{ opt.min }}"{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue