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