From d812ff8b7c68ebe5c2dda33eb460b10619c60911 Mon Sep 17 00:00:00 2001 From: chrisw Date: Fri, 8 Dec 2017 10:52:18 +0000 Subject: [PATCH] Allowed custom attributes to be added to textbox component --- app/templates/components/textbox.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/templates/components/textbox.html b/app/templates/components/textbox.html index f895dfde6..9d032d1ca 100644 --- a/app/templates/components/textbox.html +++ b/app/templates/components/textbox.html @@ -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 %} {{ suffix }} {% endif %}