From 36b12176549f9156d652c23e7472740adec23026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kou=C5=99il?= Date: Fri, 4 Dec 2015 20:41:14 +0100 Subject: [PATCH] Bs3FormRenderer: form errors are rendered in BS3 alert messages --- src/Rendering/Bs3FormRenderer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rendering/Bs3FormRenderer.php b/src/Rendering/Bs3FormRenderer.php index ff0a8d6..20593a8 100644 --- a/src/Rendering/Bs3FormRenderer.php +++ b/src/Rendering/Bs3FormRenderer.php @@ -39,6 +39,8 @@ public function __construct() $this->wrappers['label']['container'] = 'div class="col-sm-3 control-label"'; $this->wrappers['control']['description'] = 'span class=help-block'; $this->wrappers['control']['errorcontainer'] = 'span class=help-block'; + $this->wrappers['error']['container'] = null; + $this->wrappers['error']['item'] = 'div class="alert alert-danger"'; }