From 938853bd9d6b3b306d7818d0423c791f37c2203c Mon Sep 17 00:00:00 2001 From: Zihan Zheng Date: Wed, 17 May 2017 17:43:16 +0800 Subject: [PATCH] Fix: RadioField label not rendering in wtf.quick_form --- flask_bootstrap/templates/bootstrap/wtf.html | 1 + 1 file changed, 1 insertion(+) diff --git a/flask_bootstrap/templates/bootstrap/wtf.html b/flask_bootstrap/templates/bootstrap/wtf.html index cfc45be9..b57a95c2 100644 --- a/flask_bootstrap/templates/bootstrap/wtf.html +++ b/flask_bootstrap/templates/bootstrap/wtf.html @@ -49,6 +49,7 @@ {# note: A cleaner solution would be rendering depending on the widget, this is just a hack for now, until I can think of something better #} {% call _hz_form_wrap(horizontal_columns, form_type, True, required=required) %} + {{field.label(class="control-label")|safe}} {% for item in field -%}