Allowed custom attributes to be added to textbox component

This commit is contained in:
chrisw
2017-12-08 10:52:18 +00:00
parent 719dad375a
commit d812ff8b7c

View File

@@ -41,11 +41,12 @@
' form-control-error' if field.errors else ''
)
%}
{{ field(**{
'class': field_class,
'data-module': 'highlight-tags' if highlight_tags else '',
'rows': rows|string
}) }}
{{ field(
class=field_class,
data_module='highlight-tags' if highlight_tags else '',
rows=rows|string,
**kwargs
) }}
{% if suffix %}
<span>{{ suffix }}</span>
{% endif %}