Allowed custom attributes to be added to textbox component

This commit is contained in:
chrisw
2017-12-11 11:37:26 +00:00
parent df383b5c0f
commit cd3d8edccd
+6 -5
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 %}